mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
Fix Volt Absorb not activating on Thunderwave
This commit is contained in:
parent
c2f284a1d3
commit
04ce8ec213
@ -4139,6 +4139,7 @@ BattleScript_EffectParalyze:
|
|||||||
BattleScript_BattleScript_EffectParalyzeNoTypeCalc:
|
BattleScript_BattleScript_EffectParalyzeNoTypeCalc:
|
||||||
jumpifmovehadnoeffect BattleScript_ButItFailed
|
jumpifmovehadnoeffect BattleScript_ButItFailed
|
||||||
jumpifstatus BS_TARGET, STATUS1_PARALYSIS, BattleScript_AlreadyParalyzed
|
jumpifstatus BS_TARGET, STATUS1_PARALYSIS, BattleScript_AlreadyParalyzed
|
||||||
|
jumpifabsorbaffected BS_TARGET, BattleScript_VoltAbsorbHeal
|
||||||
tryparalyzetype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
|
tryparalyzetype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
|
||||||
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
||||||
jumpifterrainaffected BS_TARGET, STATUS_FIELD_MISTY_TERRAIN, BattleScript_MistyTerrainPrevents
|
jumpifterrainaffected BS_TARGET, STATUS_FIELD_MISTY_TERRAIN, BattleScript_MistyTerrainPrevents
|
||||||
@ -4153,6 +4154,11 @@ BattleScript_BattleScript_EffectParalyzeNoTypeCalc:
|
|||||||
waitmessage B_WAIT_TIME_LONG
|
waitmessage B_WAIT_TIME_LONG
|
||||||
goto BattleScript_MoveEnd
|
goto BattleScript_MoveEnd
|
||||||
|
|
||||||
|
BattleScript_VoltAbsorbHeal:
|
||||||
|
copybyte gBattlerAbility, gBattlerTarget
|
||||||
|
tryhealquarterhealth BS_TARGET BattleScript_MonMadeMoveUseless @ Check if max hp
|
||||||
|
goto BattleScript_MoveHPDrain
|
||||||
|
|
||||||
BattleScript_AlreadyParalyzed:
|
BattleScript_AlreadyParalyzed:
|
||||||
setalreadystatusedmoveattempt BS_ATTACKER
|
setalreadystatusedmoveattempt BS_ATTACKER
|
||||||
pause B_WAIT_TIME_SHORT
|
pause B_WAIT_TIME_SHORT
|
||||||
|
Loading…
Reference in New Issue
Block a user