From edb581af1feb6d2a8c5a89a507a8c7ae85ab2221 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Sun, 16 Feb 2020 13:46:35 +0100 Subject: [PATCH] Mega evo elevation shadow --- src/battle_script_commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 0c5cf53740..0ee6e1b698 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -7355,11 +7355,13 @@ static void Cmd_various(void) gBattleStruct->mega.alreadyEvolved[GetBattlerPosition(gActiveBattler)] = TRUE; gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(gActiveBattler)] |= gBitTable[gBattlerPartyIndexes[gActiveBattler]]; } - // Update healthbox. + // Update healthbox and elevation. else { UpdateHealthboxAttribute(gHealthboxSpriteIds[gActiveBattler], mon, HEALTHBOX_ALL); CreateMegaIndicatorSprite(gActiveBattler, 0); + if (GetBattlerSide(gActiveBattler) == B_SIDE_OPPONENT) + SetBattlerShadowSpriteCallback(gActiveBattler, gBattleMons[gActiveBattler].species); } gBattlescriptCurrInstr += 4; return;