#include "macros/btlanimcmd.inc"

L_0:
    LoadParticleResource 0, hydro_cannon_spa
    CreateEmitter 0, 2, 3
    PlayLoopedSoundEffectL SEQ_SE_DP_W056B, 8, 2
    Delay 20
    ResetVars
    SetVar BATTLE_ANIM_VAR_BG_MOVE_STEP_X, -32
    SetVar BATTLE_ANIM_VAR_BG_MOVE_STEP_Y, 0
    SetVar BATTLE_ANIM_VAR_BG_ANIM_MODE, 1
    SetVar BATTLE_ANIM_VAR_BG_SCREEN_MODE, 1
    SwitchBg 17, BATTLE_BG_SWITCH_MODE_FADE | BATTLE_BG_SWITCH_FLAG_MOVE
    Delay 10
    PlayMovingSoundEffectAtkDef SEQ_SE_DP_W056, BATTLE_SOUND_PAN_LEFT, BATTLE_SOUND_PAN_RIGHT, 4, 2
    CreateEmitter 0, 3, 17
    BtlAnimCmd_055 0, 2, 20, 14, 0, 0
    CreateEmitter 0, 0, 17
    BtlAnimCmd_055 0, 2, 20, 14, 0, 0
    CreateEmitter 0, 1, 17
    BtlAnimCmd_055 0, 2, 20, 14, 0, 0
    Delay 5
    Func_Shake 5, 0, 1, 15, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    WaitForAllEmitters
    UnloadParticleSystem 0
    ResetVars
    SetVar BATTLE_ANIM_VAR_BG_MOVE_STEP_X, -32
    SetVar BATTLE_ANIM_VAR_BG_MOVE_STEP_Y, 0
    SetVar BATTLE_ANIM_VAR_BG_ANIM_MODE, 1
    SetVar BATTLE_ANIM_VAR_BG_SCREEN_MODE, 1
    RestoreBg 17, BATTLE_BG_SWITCH_MODE_FADE | BATTLE_BG_SWITCH_FLAG_STOP
    WaitForBgSwitch
    End
