Merge branch 'dev' into ai

This commit is contained in:
Maruno17
2023-03-23 23:20:58 +00:00
7 changed files with 494 additions and 453 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)

View File

@@ -836,7 +836,7 @@ class Battle::Move::SetTargetTypesToPsychic < Battle::Move
def pbFailsAgainstTarget?(user, target, show_message)
if !target.canChangeType? || !GameData::Type.exists?(:PSYCHIC) ||
!target.pbHasOtherType?(:PSYCHIC) || !target.affectedByPowder?
!target.pbHasOtherType?(:PSYCHIC)
@battle.pbDisplay(_INTL("But it failed!")) if show_message
return true
end