Fix Volt Absorb not activating on Thunderwave

This commit is contained in:
DizzyEggg 2023-02-06 11:55:59 +01:00 committed by Philipp AUER
parent c2f284a1d3
commit 04ce8ec213

View File

@ -4139,6 +4139,7 @@ BattleScript_EffectParalyze:
BattleScript_BattleScript_EffectParalyzeNoTypeCalc:
jumpifmovehadnoeffect BattleScript_ButItFailed
jumpifstatus BS_TARGET, STATUS1_PARALYSIS, BattleScript_AlreadyParalyzed
jumpifabsorbaffected BS_TARGET, BattleScript_VoltAbsorbHeal
tryparalyzetype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
jumpifterrainaffected BS_TARGET, STATUS_FIELD_MISTY_TERRAIN, BattleScript_MistyTerrainPrevents
@ -4153,6 +4154,11 @@ BattleScript_BattleScript_EffectParalyzeNoTypeCalc:
waitmessage B_WAIT_TIME_LONG
goto BattleScript_MoveEnd
BattleScript_VoltAbsorbHeal:
copybyte gBattlerAbility, gBattlerTarget
tryhealquarterhealth BS_TARGET BattleScript_MonMadeMoveUseless @ Check if max hp
goto BattleScript_MoveHPDrain
BattleScript_AlreadyParalyzed:
setalreadystatusedmoveattempt BS_ATTACKER
pause B_WAIT_TIME_SHORT