From da965700ff9efe12b9fef82063e7118a6f741447 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Sat, 22 Feb 2020 19:25:35 +0100 Subject: [PATCH] Draining abilities have the pop-up appear now --- data/battle_scripts_1.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/battle_scripts_1.s b/data/battle_scripts_1.s index c57ce54e66..4189b03093 100644 --- a/data/battle_scripts_1.s +++ b/data/battle_scripts_1.s @@ -2109,6 +2109,8 @@ BattleScript_EffectAbsorb:: setbyte cMULTISTRING_CHOOSER, 0x0 goto BattleScript_AbsorbUpdateHp BattleScript_AbsorbLiquidOoze:: + copybyte gBattlerAbility, gBattlerTarget + call BattleScript_AbilityPopUp manipulatedamage DMG_CHANGE_SIGN setbyte cMULTISTRING_CHOOSER, 0x1 BattleScript_AbsorbUpdateHp:: @@ -5251,6 +5253,8 @@ BattleScript_LeechSeedTurnDrain:: setbyte cMULTISTRING_CHOOSER, 0x3 goto BattleScript_LeechSeedTurnPrintAndUpdateHp BattleScript_LeechSeedTurnPrintLiquidOoze:: + copybyte gBattlerAbility, gBattlerAttacker + call BattleScript_AbilityPopUp setbyte cMULTISTRING_CHOOSER, 0x4 BattleScript_LeechSeedTurnPrintAndUpdateHp:: orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 @@ -6513,6 +6517,7 @@ BattleScript_MoveHPDrain_PPLoss:: BattleScript_MoveHPDrain:: attackstring pause 0x20 + call BattleScript_AbilityPopUp orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE healthbarupdate BS_TARGET datahpupdate BS_TARGET @@ -6526,6 +6531,7 @@ BattleScript_MoveStatDrain_PPLoss:: BattleScript_MoveStatDrain:: attackstring pause 0x20 + call BattleScript_AbilityPopUp setgraphicalstatchangevalues playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1 waitanimation