Move mega indicator for lv 100 mons

Indicator sprite overlaps the "100" without this.
This commit is contained in:
BuffelSaft 2021-08-25 23:15:30 +12:00
parent 38120afbac
commit bc298d242f

View File

@ -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;