Merge pull request #100 from KamilaBorowska/fix-aromatherapy-bug

Make Aromatherapy work when user is not statused
This commit is contained in:
infinitefusion
2025-02-24 11:44:27 -05:00
committed by GitHub

View File

@@ -394,13 +394,11 @@ class PokeBattle_Move_019 < PokeBattle_Move
failed = false failed = false
break break
end end
if !failed
@battle.pbParty(user.index).each do |pkmn| @battle.pbParty(user.index).each do |pkmn|
next if !pkmn || !pkmn.able? || pkmn.status == :NONE next if !pkmn || !pkmn.able? || pkmn.status == :NONE
failed = false failed = false
break break
end end
end
if failed if failed
@battle.pbDisplay(_INTL("But it failed!")) @battle.pbDisplay(_INTL("But it failed!"))
return true return true