MOVE_EFFECT_MEAN_LOOK now fails on ghost types.

This commit is contained in:
Eduardo Quezada D'Ottone 2021-10-23 11:42:33 -03:00
parent 8bdcbb856d
commit f4ff76c8ae

View File

@ -3977,6 +3977,9 @@ BattleScript_EffectMeanLook::
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
jumpifstatus2 BS_TARGET, STATUS2_ESCAPE_PREVENTION, BattleScript_ButItFailed
jumpifsubstituteblocks BattleScript_ButItFailed
.if B_GHOSTS_ESCAPE >= GEN_6
jumpiftype BS_TARGET, TYPE_GHOST, BattleScript_ButItFailed
.endif
attackanimation
waitanimation
setmoveeffect MOVE_EFFECT_PREVENT_ESCAPE