mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Changed Greninja's forms to add one with the Battle Bond ability
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user