Changed Greninja's forms to add one with the Battle Bond ability

This commit is contained in:
Maruno17
2020-09-12 16:35:56 +01:00
parent a756539651
commit e4436c0fa3
5 changed files with 15 additions and 5 deletions

View File

@@ -102,12 +102,12 @@ class PokeBattle_Battler
!@battle.battleBond[user.index&1][user.pokemonIndex]
numFainted = 0
targets.each { |b| numFainted += 1 if b.damageState.fainted }
if numFainted>0 && user.form!=1
if numFainted>0 && user.form==1
@battle.battleBond[user.index&1][user.pokemonIndex] = true
@battle.pbDisplay(_INTL("{1} became fully charged due to its bond with its Trainer!",user.pbThis))
@battle.pbShowAbilitySplash(user,true)
@battle.pbHideAbilitySplash(user)
user.pbChangeForm(1,_INTL("{1} became Ash-Greninja!",user.pbThis))
user.pbChangeForm(2,_INTL("{1} became Ash-Greninja!",user.pbThis))
end
end
end

View File

@@ -1967,7 +1967,7 @@ class PokeBattle_Move_0C0 < PokeBattle_Move
def pbNumHits(user,targets)
if isConst?(@id,PBMoves,:WATERSHURIKEN) &&
user.isSpecies?(:GRENINJA) && user.form==1
user.isSpecies?(:GRENINJA) && user.form==2
return 3
end
hitChances = [2,2,3,3,4,5]
@@ -1978,7 +1978,7 @@ class PokeBattle_Move_0C0 < PokeBattle_Move
def pbBaseDamage(baseDmg,user,target)
if isConst?(@id,PBMoves,:WATERSHURIKEN) &&
user.isSpecies?(:GRENINJA) && user.form==1
user.isSpecies?(:GRENINJA) && user.form==2
return 20
end
return super

View File

@@ -468,7 +468,7 @@ MultipleForms.register(:GENESECT,{
MultipleForms.register(:GRENINJA,{
"getFormOnLeavingBattle" => proc { |pkmn,battle,usedInBattle,endBattle|
next 0 if pkmn.fainted? || endBattle
next 1 if pkmn.form == 2 && (pkmn.fainted? || endBattle)
}
})

View File

@@ -1170,6 +1170,11 @@ FormName = Chill Drive
FormName = Douse Drive
#-------------------------------
[GRENINJA,1]
Abilities = BATTLEBOND
HiddenAbility = BATTLEBOND
Compatibility = Undiscovered
#-------------------------------
[GRENINJA,2]
FormName = Ash-Greninja
BaseStats = 72,145,67,132,153,71
Abilities = BATTLEBOND

View File

@@ -1170,6 +1170,11 @@ FormName = Chill Drive
FormName = Douse Drive
#-------------------------------
[GRENINJA,1]
Abilities = BATTLEBOND
HiddenAbility = BATTLEBOND
Compatibility = Undiscovered
#-------------------------------
[GRENINJA,2]
FormName = Ash-Greninja
BaseStats = 72,145,67,132,153,71
Abilities = BATTLEBOND