That's because `states` is not an array of numbers.
I copied what Engr wrote because I assumed the logic was correct since he pays a lot more attention to details than I do and properly tests his stuff before throwing it up in public.
I copied what Engr wrote because I assumed the logic was correct since he pays a lot more attention to details than I do and properly tests his stuff before throwing it up in public.
Code:
!$game_party.battle_members[0].states.any?{|state| [1,28,29].include?(state.id)} && !$game_party.battle_members[1].states.any?{|state| [1,28,29].include?(state.id)}
Last edited by a moderator:
