Merge pull request #1298 from ghoulslash/mummy
Fix Early Mummy Activation
This commit is contained in:
commit
1caed479de
1 changed files with 1 additions and 0 deletions
|
@ -4395,6 +4395,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
|
||||||
case ABILITY_MUMMY:
|
case ABILITY_MUMMY:
|
||||||
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
|
||||||
&& IsBattlerAlive(gBattlerAttacker)
|
&& IsBattlerAlive(gBattlerAttacker)
|
||||||
|
&& TARGET_TURN_DAMAGED
|
||||||
&& (gBattleMoves[move].flags & FLAG_MAKES_CONTACT))
|
&& (gBattleMoves[move].flags & FLAG_MAKES_CONTACT))
|
||||||
{
|
{
|
||||||
switch (gBattleMons[gBattlerAttacker].ability)
|
switch (gBattleMons[gBattlerAttacker].ability)
|
||||||
|
|
Loading…
Reference in a new issue