From bc298d242f487437d797879889eca2a153f9b444 Mon Sep 17 00:00:00 2001 From: BuffelSaft Date: Wed, 25 Aug 2021 23:15:30 +1200 Subject: [PATCH] Move mega indicator for lv 100 mons Indicator sprite overlaps the "100" without this. --- src/battle_interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle_interface.c b/src/battle_interface.c index c4fcfe331..1a6a933a1 100644 --- a/src/battle_interface.c +++ b/src/battle_interface.c @@ -1519,11 +1519,15 @@ u32 CreateMegaIndicatorSprite(u32 battlerId, u32 which) { x += sIndicatorPosDoubles[position][0]; y += sIndicatorPosDoubles[position][1]; + if (gBattleMons[battlerId].level >= 100) + x -= 4; } else { x += sIndicatorPosSingles[position][0]; y += sIndicatorPosSingles[position][1]; + if (gBattleMons[battlerId].level >= 100) + x -= 4; } spriteId = CreateSpriteAtEnd(&sSpriteTemplate_MegaIndicator, x, y, 0); gSprites[gSprites[gHealthboxSpriteIds[battlerId]].oam.affineParam].hOther_IndicatorSpriteId = spriteId;