#include "macros/btlanimcmd.inc"

L_0:
    LoadParticleResource 0, ice_ball_spa
    PlayMovingSoundEffectAtkDef SEQ_SE_DP_W196, BATTLE_SOUND_PAN_LEFT, BATTLE_SOUND_PAN_RIGHT, 4, 2
    CreateEmitter 0, 0, 3
    Func_MoveEmitterA2BLinear 0, 0, 0, 0, 14, 64
    CreateEmitter 0, 1, 3
    Func_MoveEmitterA2BLinear 0, 0, 0, 0, 16, 64
    Delay 14
    CreateEmitter 0, 2, 4
    Delay 5
    PlaySoundEffectR SEQ_SE_DP_W280
    Func_Shake 2, 0, 1, 4, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    Func_FadeBattlerSprite BATTLE_ANIM_DEFENDER, 0, 1, BATTLE_COLOR_WHITE, 10, 0
    WaitForAnimTasks
    WaitForAllEmitters
    UnloadParticleSystem 0
    End
