mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Fixed Max Move in-battle descriptions (#8004)
This commit is contained in:
parent
3bb6cddffb
commit
5276f2bc6b
|
|
@ -1725,6 +1725,14 @@ static void MoveSelectionDisplayMoveDescription(u32 battler)
|
|||
u16 move = moveInfo->moves[gMoveSelectionCursor[battler]];
|
||||
u16 pwr = GetMovePower(move);
|
||||
u16 acc = GetMoveAccuracy(move);
|
||||
enum DamageCategory cat = GetBattleMoveCategory(move);
|
||||
|
||||
if (GetActiveGimmick(battler) == GIMMICK_DYNAMAX || IsGimmickSelected(battler, GIMMICK_DYNAMAX))
|
||||
{
|
||||
pwr = GetMaxMovePower(move);
|
||||
move = GetMaxMove(battler, move);
|
||||
acc = 0;
|
||||
}
|
||||
|
||||
u8 pwr_num[3], acc_num[3];
|
||||
u8 cat_desc[7] = _("CAT: ");
|
||||
|
|
@ -1758,7 +1766,7 @@ static void MoveSelectionDisplayMoveDescription(u32 battler)
|
|||
if (gCategoryIconSpriteId == 0xFF)
|
||||
gCategoryIconSpriteId = CreateSprite(&gSpriteTemplate_CategoryIcons, 38, 64, 1);
|
||||
|
||||
StartSpriteAnim(&gSprites[gCategoryIconSpriteId], GetBattleMoveCategory(move));
|
||||
StartSpriteAnim(&gSprites[gCategoryIconSpriteId], cat);
|
||||
|
||||
CopyWindowToVram(B_WIN_MOVE_DESCRIPTION, COPYWIN_FULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user