Fixed Beak Blast's burn affecting the wrong Pokémon

This commit is contained in:
Maruno17
2023-03-21 18:28:06 +00:00
parent 941e238606
commit 1ead0a76f5
2 changed files with 11 additions and 11 deletions

View File

@@ -54,8 +54,8 @@ class Battle::Battler
if target.effects[PBEffects::BeakBlast]
PBDebug.log("[Lingering effect] #{target.pbThis}'s Beak Blast")
if move.pbContactMove?(user) && user.affectedByContactEffect? &&
target.pbCanBurn?(user, false, self)
target.pbBurn(user)
user.pbCanBurn?(target, false, self)
user.pbBurn(target)
end
end
# Shell Trap (make the trapper move next if the trap was triggered)