This commit is contained in:
cawtds 2026-03-21 08:02:48 +01:00 committed by GitHub
commit 1f02bc804b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,21 +627,21 @@ void BattleLoadMonSpriteGfx(struct Pokemon *mon, enum BattlerId battler)
return;
isShiny = GetMonData(mon, MON_DATA_IS_SHINY);
species = GetMonData(mon, MON_DATA_SPECIES);
personalityValue = GetMonData(mon, MON_DATA_PERSONALITY);
if (gBattleSpritesDataPtr->battlerData[battler].transformSpecies == SPECIES_NONE)
{
species = GetMonData(mon, MON_DATA_SPECIES);
personalityValue = GetMonData(mon, MON_DATA_PERSONALITY);
}
else
if (gBattleSpritesDataPtr->battlerData[battler].transformSpecies != SPECIES_NONE)
{
species = gBattleSpritesDataPtr->battlerData[battler].transformSpecies;
// If battler has Gigantamax factor, try convert gfx to G-Max version
if (GetActiveGimmick(battler) == GIMMICK_DYNAMAX && GetMonData(mon, MON_DATA_GIGANTAMAX_FACTOR))
gBattleSpritesDataPtr->battlerData[battler].transformSpecies = species = GetGMaxTargetSpecies(species);
personalityValue = gTransformedPersonalities[battler];
isShiny = gTransformedShininess[battler];
if (gBattleMons[battler].volatiles.transformed)
{
personalityValue = gTransformedPersonalities[battler];
isShiny = gTransformedShininess[battler];
}
}
position = GetBattlerPosition(battler);