Fixed type-resisting berries trying to be consumed twice when triggered by a move called by another move, fixed bad old phone data conversion, fixed events of even sizes moving endlessly when approaching the player

This commit is contained in:
Maruno17
2024-02-15 21:16:15 +00:00
parent 86c92e7657
commit 3e167b9357
3 changed files with 16 additions and 7 deletions

View File

@@ -736,6 +736,7 @@ class Battle::Battler
targets.each do |b|
next if b.damageState.unaffected
next if !b.damageState.berryWeakened
b.damageState.berryWeakened = false # Weakening only applies for one hit
@battle.pbDisplay(_INTL("The {1} weakened the damage to {2}!", b.itemName, b.pbThis(true)))
b.pbConsumeItem
end