mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-12 08:42:20 +01:00
Merge pull request #1418 from BuffelSaft/rage_powder_fix_1
Fix powder immunity for self-targeting moves
This commit is contained in:
commit
45405e95b0
@ -3175,7 +3175,7 @@ u8 AtkCanceller_UnableToUseMove(void)
|
|||||||
gBattleStruct->atkCancellerTracker++;
|
gBattleStruct->atkCancellerTracker++;
|
||||||
break;
|
break;
|
||||||
case CANCELLER_POWDER_MOVE:
|
case CANCELLER_POWDER_MOVE:
|
||||||
if (gBattleMoves[gCurrentMove].flags & FLAG_POWDER)
|
if ((gBattleMoves[gCurrentMove].flags & FLAG_POWDER) && (gBattlerAttacker != gBattlerTarget))
|
||||||
{
|
{
|
||||||
if ((B_POWDER_GRASS >= GEN_6 && IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_GRASS))
|
if ((B_POWDER_GRASS >= GEN_6 && IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_GRASS))
|
||||||
|| GetBattlerAbility(gBattlerTarget) == ABILITY_OVERCOAT)
|
|| GetBattlerAbility(gBattlerTarget) == ABILITY_OVERCOAT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user