mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-19 20:18:34 +01:00
Fix mega evo issues
This commit is contained in:
parent
65be7868ec
commit
ad63540522
@ -692,7 +692,7 @@ u8 CreateBattlerHealthboxSprites(u8 battlerId)
|
|||||||
healthBarSpritePtr->invisible = TRUE;
|
healthBarSpritePtr->invisible = TRUE;
|
||||||
|
|
||||||
// Create mega indicator sprite if is a mega evolved mon.
|
// Create mega indicator sprite if is a mega evolved mon.
|
||||||
if (gBattleStruct->mega.alreadyEvolved[GetBattlerPosition(battlerId)])
|
if (gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battlerId)] & gBitTable[gBattlerPartyIndexes[battlerId]])
|
||||||
CreateMegaIndicatorSprite(battlerId, 0);
|
CreateMegaIndicatorSprite(battlerId, 0);
|
||||||
|
|
||||||
return healthboxLeftSpriteId;
|
return healthboxLeftSpriteId;
|
||||||
@ -875,7 +875,7 @@ static void UpdateLvlInHealthbox(u8 healthboxSpriteId, u8 lvl)
|
|||||||
u8 battler = gSprites[healthboxSpriteId].hMain_Battler;
|
u8 battler = gSprites[healthboxSpriteId].hMain_Battler;
|
||||||
|
|
||||||
// Don't print Lv char if mon is mega evolved.
|
// Don't print Lv char if mon is mega evolved.
|
||||||
if (gBattleStruct->mega.alreadyEvolved[GetBattlerPosition(battler)])
|
if (gBattleStruct->mega.evolvedPartyIds[GetBattlerSide(battler)] & gBitTable[gBattlerPartyIndexes[battler]])
|
||||||
{
|
{
|
||||||
xPos = (u32) ConvertIntToDecimalStringN(text, lvl, STR_CONV_MODE_LEFT_ALIGN, 3);
|
xPos = (u32) ConvertIntToDecimalStringN(text, lvl, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||||
}
|
}
|
||||||
@ -1340,15 +1340,15 @@ void DestroyMegaTriggerSprite(void)
|
|||||||
static const s8 sIndicatorPosSingles[][2] =
|
static const s8 sIndicatorPosSingles[][2] =
|
||||||
{
|
{
|
||||||
[B_POSITION_PLAYER_LEFT] = {53, -8},
|
[B_POSITION_PLAYER_LEFT] = {53, -8},
|
||||||
[B_POSITION_OPPONENT_LEFT] = {53, -8},
|
[B_POSITION_OPPONENT_LEFT] = {45, -8},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const s8 sIndicatorPosDoubles[][2] =
|
static const s8 sIndicatorPosDoubles[][2] =
|
||||||
{
|
{
|
||||||
[B_POSITION_PLAYER_LEFT] = {53, -8},
|
[B_POSITION_PLAYER_LEFT] = {53, -8},
|
||||||
[B_POSITION_OPPONENT_LEFT] = {53, -8},
|
[B_POSITION_OPPONENT_LEFT] = {45, -8},
|
||||||
[B_POSITION_PLAYER_RIGHT] = {53, -8},
|
[B_POSITION_PLAYER_RIGHT] = {53, -8},
|
||||||
[B_POSITION_OPPONENT_RIGHT] = {53, -8},
|
[B_POSITION_OPPONENT_RIGHT] = {45, -8},
|
||||||
};
|
};
|
||||||
|
|
||||||
void CreateMegaIndicatorSprite(u32 battlerId, u32 which)
|
void CreateMegaIndicatorSprite(u32 battlerId, u32 which)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user