summaryrefslogtreecommitdiff
path: root/src/battle/anim/fury_cutter_count.c
blob: 17b084585bb3245e9eb21b669b51bb64c4212691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "global.h"
#include "battle_anim.h"

extern s16 gBattleAnimArgs[8];
extern u8 *gDisableStructMoveAnim; // TODO: this is declared with a different type in different files

// fury_cutter (updates the direction and count of the fury cutter animation)
// Used in Fury Cutter.

void UpdateFuryCutterAnimDirection(u8 taskId)
{
    gBattleAnimArgs[7] = gDisableStructMoveAnim[16] & 1;
    DestroyAnimVisualTask(taskId);
}

void UpdateFuryCutterAnimCount(u8 taskId)
{
    gBattleAnimArgs[7] = gDisableStructMoveAnim[16];
    DestroyAnimVisualTask(taskId);
}