mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-14 07:33:44 +01:00
ally cannot block prankster + perish song
This commit is contained in:
parent
9c79ba05fc
commit
80a48de702
@ -3700,7 +3700,8 @@ BattleScript_EffectPerishSong::
|
||||
setbyte gBattlerTarget, 0
|
||||
BattleScript_PerishSongLoop::
|
||||
jumpifability BS_TARGET, ABILITY_SOUNDPROOF, BattleScript_PerishSongBlocked
|
||||
jumpifbyteequal gBattlerAttacker, gBattlerTarget, BattleScript_PerishSongLoopIncrement @ cannot block your own perish song
|
||||
jumpifbyteequal gBattlerAttacker, gBattlerTarget, BattleScript_PerishSongLoopIncrement @ Cannot block your own perish song
|
||||
jumpiftargetally BattleScript_PerishSongLoopIncrement @ Cannot block ally perish song
|
||||
jumpifability BS_ATTACKER, ABILITY_PRANKSTER, BattleScript_PerishSongCheckPrankster
|
||||
goto BattleScript_PerishSongLoopIncrement
|
||||
BattleScript_PerishSongCheckPrankster:
|
||||
|
@ -10731,7 +10731,7 @@ static void Cmd_trysetperishsong(void)
|
||||
if (gStatuses3[i] & STATUS3_PERISH_SONG
|
||||
|| gBattleMons[i].ability == ABILITY_SOUNDPROOF
|
||||
|| (B_PRANKSTER_DARK_TYPES >= GEN_7
|
||||
&& i != gBattlerAttacker
|
||||
&& GetBattlerSide(i) != GetBattlerSide(gBattlerAttacker)
|
||||
&& GetBattlerAbility(gBattlerAttacker) == ABILITY_PRANKSTER
|
||||
&& IS_BATTLER_OF_TYPE(i, TYPE_DARK))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user