defining multiple death states?

in my game that I'm making the light and dark elements act as instant kills and I already have a small script that defines a custom death state but it only works for one or the other instead of both, how would I make this apply to both light and dark?

class Game_BattlerBase
#--------------------------------------------------------------------------
# * Check K.O. State
#--------------------------------------------------------------------------
def death_state?
state?(death_state_id) || state?(28)
end
end

that's literally it that's the whole script (28 is the state id for light instant kill and 29 is the state id for dark instant kill) so how would I make it apply to both
I'm a total noob at Ruby, but wouldn't this work?

class Game_BattlerBase
#--------------------------------------------------------------------------
# * Check K.O. State
#--------------------------------------------------------------------------
def death_state?
state?(death_state_id) || state?(28) || state?(29)
end
end
I'm a total noob at Ruby, but wouldn't this work?

class Game_BattlerBase
#--------------------------------------------------------------------------
# * Check K.O. State
#--------------------------------------------------------------------------
def death_state?
state?(death_state_id) || state?(28) || state?(29)
end
end
ohhhhhhhhhhh

I dunno why I haven't tried that. I tried putting state?(28,29) and defining both states in separate lines like an idiot

Original thread: https://forums.rpgmakerweb.com/threads/defining-multiple-death-states.171108/