#include "macros/btlanimcmd.inc"

L_0:
    LoadParticleResource 0, water_gun_spa
    JumpIfFriendlyFire L_1
    JumpIfContest L_2
    CreateEmitterForMove 0, 2, 3, 4, 5, 7, 6, 18
    PlayMovingSoundEffectAtkDef SEQ_SE_DP_W055, BATTLE_SOUND_PAN_LEFT, BATTLE_SOUND_PAN_RIGHT, 4, 2
    Delay 10
    CreateEmitter 0, 0, 4
    CreateEmitter 0, 1, 4
    Func_Shake 2, 0, 1, 2, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    WaitForAllEmitters
    UnloadParticleSystem 0
    WaitForAnimTasks
    End

L_1:
    CreateEmitterForFriendlyFire 0, 9, 10, 9, 10, 3
    PlayMovingSoundEffectAtkDef SEQ_SE_DP_W055, BATTLE_SOUND_PAN_LEFT, BATTLE_SOUND_PAN_RIGHT, 4, 2
    Delay 10
    CreateEmitter 0, 0, 4
    CreateEmitter 0, 1, 4
    Func_Shake 2, 0, 1, 2, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    WaitForAllEmitters
    UnloadParticleSystem 0
    WaitForAnimTasks
    End

L_2:
    CreateEmitter 0, 8, 17
    BtlAnimCmd_055 0, 1, 5, 0, 0, 0
    BtlAnimCmd_055 0, 9976, -7568, 0
    PlayMovingSoundEffectAtkDef SEQ_SE_DP_W055, BATTLE_SOUND_PAN_LEFT, BATTLE_SOUND_PAN_RIGHT, 4, 2
    Delay 10
    CreateEmitter 0, 0, 4
    CreateEmitter 0, 1, 4
    Func_Shake 2, 0, 1, 2, BATTLE_ANIM_BATTLER_SPRITE_DEFENDER
    WaitForAllEmitters
    UnloadParticleSystem 0
    WaitForAnimTasks
    End
