Closed ascriptmaster closed 9 years ago
return false
if the pokemon has 0 HP at the end of the onBeforeMove
handler
Regarding Illusion, we can just say it's a mechanic and call it a day.
We can probably do like getName
or whatever to maintain the Illusion?
Calling @Joimer
http://replay.pokemonshowdown.com/seasonalsleighshowdown-192018585 (Turn 28): Zekrom hits a tree, goes to 0 HP, then tries to Roost, which fails.
http://replay.pokemonshowdown.com/seasonalsleighshowdown-192022880 (Turn 13): Octillery hits a tree, goes to 0 HP, then tries to Rock Blast. Instead of executing the move, it suddenly faints.
http://replay.pokemonshowdown.com/seasonalsleighshowdown-192030265 (Turn 6): Hitting hazards in Seasonals reveals Illusion users.