Jump to content

Sleeping/frozen pokemon can't flinch


Recommended Posts

  • Staff
Posted (edited)

In PokeBattle_Battler and PokeBattle_MoveEffects, there are lines preventing pokemon from flinching from moves (though not from King's Rock / Razor Fang).

Bulbapedia's not 100% unambiguous, but apparently it was only in gen 2 that sleeping pokemon couldn't flinch.

 

For ctrl-f:

Spoiler

PokeBattle_Battler :


target.status!=PBStatuses::SLEEP && target.status!=PBStatuses::FROZEN

PokeBattle_MoveEffects:


opponent.status!=PBStatuses::SLEEP && opponent.status!=PBStatuses::FROZEN

         opponent.damagestate.substitute || (opponent.status!=PBStatuses::SLEEP && 
         opponent.status!=PBStatuses::FROZEN)

 

 

Edited by Aeodyn
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...