mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-19 12:08:34 +01:00
Effect Spore not affected by overcoat
This commit is contained in:
parent
5dd7ab98d1
commit
5c3d755ac6
@ -3258,6 +3258,9 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
|
|||||||
&& !gProtectStructs[gBattlerAttacker].confusionSelfDmg
|
&& !gProtectStructs[gBattlerAttacker].confusionSelfDmg
|
||||||
&& TARGET_TURN_DAMAGED
|
&& TARGET_TURN_DAMAGED
|
||||||
&& (gBattleMoves[move].flags & FLAG_MAKES_CONTACT)
|
&& (gBattleMoves[move].flags & FLAG_MAKES_CONTACT)
|
||||||
|
&& !IS_BATTLER_OF_TYPE(gBattlerAttacker, TYPE_GRASS)
|
||||||
|
&& GetBattlerAbility(gBattlerAttacker) != ABILITY_OVERCOAT
|
||||||
|
&& GetBattlerHoldEffect(gBattlerAttacker, TRUE) != HOLD_EFFECT_SAFETY_GOOGLES
|
||||||
&& (Random() % 10) == 0)
|
&& (Random() % 10) == 0)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user