mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-23 22:26:14 -05:00
fix psystrike animation
This commit is contained in:
parent
d22d4db02c
commit
205ce2cd10
|
|
@ -783,15 +783,16 @@ static void AnimTask_FlashAnimTagWithColor_Step2(u8 taskId)
|
|||
void AnimTask_InvertScreenColor(u8 taskId)
|
||||
{
|
||||
u32 selectedPalettes = 0;
|
||||
u8 attackerBattler = gBattleAnimAttacker;
|
||||
u8 targetBattler = gBattleAnimTarget;
|
||||
|
||||
if (gBattleAnimArgs[0] & 0x100)
|
||||
if (gBattleAnimArgs[0] & 0x1)
|
||||
selectedPalettes = GetBattlePalettesMask(TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE);
|
||||
if (gBattleAnimArgs[1] & 0x100)
|
||||
selectedPalettes |= (0x10000 << attackerBattler);
|
||||
if (gBattleAnimArgs[2] & 0x100)
|
||||
selectedPalettes |= (0x10000 << targetBattler);
|
||||
if (gBattleAnimArgs[0] & 0x2)
|
||||
selectedPalettes |= (0x10000 << gBattleAnimAttacker);
|
||||
if (gBattleAnimArgs[0] & 0x4)
|
||||
selectedPalettes |= (0x10000 << gBattleAnimTarget);
|
||||
if (gBattleAnimArgs[0] & 0x8 && IsBattlerAlive(BATTLE_PARTNER(gBattleAnimTarget)))
|
||||
selectedPalettes |= (0x10000 << BATTLE_PARTNER(gBattleAnimTarget));
|
||||
|
||||
InvertPlttBuffer(selectedPalettes);
|
||||
DestroyAnimVisualTask(taskId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user