#include "macros/btlanimcmd.inc"

L_0:
    LoadParticleResource 0, mega_kick_spa
    ResetVars
    SetVar BATTLE_ANIM_VAR_BG_SCREEN_MODE, 1
    SwitchBg 0, BATTLE_BG_SWITCH_MODE_FADE
    Delay 5
    CreateEmitter 0, 1, 4
    CreateEmitter 0, 2, 4
    CreateEmitter 0, 0, 4
    CreateEmitter 0, 3, 4
    PlayDelayedSoundEffectR SEQ_SE_DP_140, 1
    Func_Shake 4, 0, 1, 2, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    Delay 1
    Func_ShakeBg 5, 0, 1, 3, 0
    WaitForAnimTasks
    WaitForAllEmitters
    UnloadParticleSystem 0
    ResetVars
    SetVar BATTLE_ANIM_VAR_BG_SCREEN_MODE, 1
    RestoreBg 0, BATTLE_BG_SWITCH_MODE_FADE
    WaitForBgSwitch
    End
