Merge branch 'master' into dev

This commit is contained in:
Maruno17
2021-08-12 20:37:25 +01:00
7 changed files with 20 additions and 8 deletions

View File

@@ -165,7 +165,7 @@ class PokeBattle_Battler
def pbSymbiosis
return if fainted?
return if !self.item
return if self.item
@battle.pbPriority(true).each do |b|
next if b.opposes?
next if !b.hasActiveAbility?(:SYMBIOSIS)

View File

@@ -2522,7 +2522,8 @@ class PokeBattle_Move_0D6 < PokeBattle_HealingMove
return (user.totalhp/2.0).round
end
def pbEffectAfterAllHits(user,target)
def pbEffectGeneral(user)
super
user.effects[PBEffects::Roost] = true
end
end

View File

@@ -872,7 +872,7 @@ BattleHandlers::DamageCalcUserAbility.add(:AERILATE,
}
)
BattleHandlers::DamageCalcUserAbility.copy(:AERILATE,:PIXILATE,:REFRIGERATE,:GALVANIZE)
BattleHandlers::DamageCalcUserAbility.copy(:AERILATE, :PIXILATE, :REFRIGERATE, :GALVANIZE, :NORMALIZE)
BattleHandlers::DamageCalcUserAbility.add(:ANALYTIC,
proc { |ability,user,target,move,mults,baseDmg,type|