Make Aromatherapy work when user is not statused

This commit is contained in:
Konrad Borowski
2023-07-23 09:19:00 +02:00
parent 38ea210de7
commit bd11977c80

View File

@@ -409,12 +409,10 @@ 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!"))