BattleAnimations::
	dw BattleAnim_NoAnimation
	dw BattleAnim_Pound
	dw BattleAnim_KarateChop
	dw BattleAnim_Doubleslap
	dw BattleAnim_FinalChance
	dw BattleAnim_ZenHeadbutt
	dw BattleAnim_BulkUp
	dw BattleAnim_FirePunch
	dw BattleAnim_IcePunch
	dw BattleAnim_Thunderpunch
	dw BattleAnim_Scratch
	dw BattleAnim_FairyWind
	dw BattleAnim_DrainingKiss
	dw BattleAnim_IronDefense
	dw BattleAnim_SwordsDance
	dw BattleAnim_Cut
	dw BattleAnim_Gust
	dw BattleAnim_WingAttack
	dw BattleAnim_Whirlwind
	dw BattleAnim_Fly
	dw BattleAnim_BugBuzz
	dw BattleAnim_NoAnimation ;Nature Power
	dw BattleAnim_VineWhip
	dw BattleAnim_Stomp
	dw BattleAnim_DoubleKick
	dw BattleAnim_CosmicPower
	dw BattleAnim_LaughingGas
	dw BattleAnim_FlareBlitz_SacredFire ;Flare Blitz
	dw BattleAnim_SandAttack
	dw BattleAnim_Headbutt
	dw BattleAnim_PrismSpray
	dw BattleAnim_PowerBallad
	dw BattleAnim_BraveBird
	dw BattleAnim_Tackle
	dw BattleAnim_BodySlam
	dw BattleAnim_Wrap
	dw BattleAnim_TakeDown
	dw BattleAnim_Hail
	dw BattleAnim_DoubleEdge
	dw BattleAnim_TailWhip
	dw BattleAnim_PoisonSting
	dw BattleAnim_AuraSphere
	dw BattleAnim_PinMissile
	dw BattleAnim_Leer
	dw BattleAnim_Bite
	dw BattleAnim_Growl
	dw BattleAnim_Roar
	dw BattleAnim_Sing
	dw BattleAnim_Supersonic
	dw BattleAnim_DragonPulse
	dw BattleAnim_Disable
	dw BattleAnim_Acid
	dw BattleAnim_Ember
	dw BattleAnim_Flamethrower
	dw BattleAnim_Mist
	dw BattleAnim_WaterGun
	dw BattleAnim_HydroPump
	dw BattleAnim_Surf
	dw BattleAnim_IceBeam
	dw BattleAnim_Blizzard
	dw BattleAnim_Psybeam
	dw BattleAnim_Bubblebeam
	dw BattleAnim_FreezeBurn
	dw BattleAnim_HyperBeam
	dw BattleAnim_Peck
	dw BattleAnim_DrillPeck
	dw BattleAnim_LavaPool
	dw BattleAnim_DrainPunch
	dw BattleAnim_Counter
	dw BattleAnim_SeismicToss
	dw BattleAnim_EarthPower_Strength ;Strength
	dw BattleAnim_Absorb
	dw BattleAnim_MegaDrain
	dw BattleAnim_LeechSeed
	dw BattleAnim_Growth
	dw BattleAnim_RazorLeaf
	dw BattleAnim_Solarbeam
	dw BattleAnim_PowderBasedMove ;PoisonPowder
	dw BattleAnim_PowderBasedMove ;Stun Spore
	dw BattleAnim_PowderBasedMove ;Sleep Powder
	dw BattleAnim_HyperVoice
	dw BattleAnim_StringShot
	dw BattleAnim_BulletPunch
	dw BattleAnim_FireSpin
	dw BattleAnim_Thundershock
	dw BattleAnim_Thunderbolt
	dw BattleAnim_ThunderWave
	dw BattleAnim_Thunder
	dw BattleAnim_RockThrow
	dw BattleAnim_Earthquake
	dw BattleAnim_NastyPlot
	dw BattleAnim_Dig
	dw BattleAnim_Toxic_SteelEater ;Toxic
	dw BattleAnim_Confusion
	dw BattleAnim_Psychic
	dw BattleAnim_Hypnosis
	dw BattleAnim_DragonDance
	dw BattleAnim_Agility
	dw BattleAnim_QuickAttack
	dw BattleAnim_Rage
	dw BattleAnim_Teleport
	dw BattleAnim_NightShade
	dw BattleAnim_EnergyBall
	dw BattleAnim_Screech
	dw BattleAnim_DoubleTeam
	dw BattleAnim_Recover
	dw BattleAnim_Harden
	dw BattleAnim_Minimize
	dw BattleAnim_Smokescreen
	dw BattleAnim_ConfuseRay
	dw BattleAnim_HeadSmash
	dw BattleAnim_DefenseCurl
	dw BattleAnim_Barrier
	dw BattleAnim_LightScreen
	dw BattleAnim_Haze
	dw BattleAnim_Reflect
	dw BattleAnim_FocusEnergy
	dw BattleAnim_Astonish
	dw BattleAnim_Metronome
	dw BattleAnim_NoAnimation ;Mirror Move
	dw BattleAnim_Selfdestruct
	dw BattleAnim_Metallurgy
	dw BattleAnim_Lick
	dw BattleAnim_Smog
	dw BattleAnim_Sludge
	dw BattleAnim_ThunderFang
	dw BattleAnim_FireBlast
	dw BattleAnim_Waterfall
	dw BattleAnim_StormFront
	dw BattleAnim_Swift
	dw BattleAnim_AquaJet
	dw BattleAnim_DustDevil
	dw BattleAnim_FlashCannon
	dw BattleAnim_Amnesia
	dw BattleAnim_WillOWisp
	dw BattleAnim_Softboiled
	dw BattleAnim_HiJumpKick
	dw BattleAnim_BurningMist
	dw BattleAnim_DreamEater
	dw BattleAnim_PoisonGas
	dw BattleAnim_SeedBomb
	dw BattleAnim_LeechLife
	dw BattleAnim_ShockSmog
	dw BattleAnim_SkyAttack
	dw BattleAnim_Transform
	dw BattleAnim_Bubble
	dw BattleAnim_DizzyPunch
	dw BattleAnim_SpringBuds
	dw BattleAnim_Flash
	dw BattleAnim_BassTremor
	dw BattleAnim_Splash
	dw BattleAnim_AcidArmor
	dw BattleAnim_NightSlash
	dw BattleAnim_Explosion
	dw BattleAnim_PoisonJab
	dw BattleAnim_SignalBeam
	dw BattleAnim_Rest
	dw BattleAnim_RockSlide
	dw BattleAnim_MeteorMash
	dw BattleAnim_VoidSphere
	dw BattleAnim_Conversion
	dw BattleAnim_TriAttack
	dw BattleAnim_DragonClaw
	dw BattleAnim_Slash
	dw BattleAnim_Substitute
	dw BattleAnim_Struggle
	dw BattleAnim_CrystalBolt
	dw BattleAnim_Spark_WildCharge ;Wild Charge
	dw BattleAnim_Thief
	dw BattleAnim_XScissor
	dw BattleAnim_MindReader
	dw BattleAnim_AerialAce_ExtremeSpeed ;Aerial Ace
	dw BattleAnim_FlameWheel
	dw BattleAnim_IronHead
	dw BattleAnim_Curse
	dw BattleAnim_Flail
	dw BattleAnim_Conversion2
	dw BattleAnim_Aeroblast
	dw BattleAnim_CottonSpore
	dw BattleAnim_Reversal
	dw BattleAnim_Spite
	dw BattleAnim_PowderSnow
	dw BattleAnim_Protect
	dw BattleAnim_MachPunch
	dw BattleAnim_ScaryFace
	dw BattleAnim_FeintAttack
	dw BattleAnim_SweetKiss
	dw BattleAnim_BellyDrum
	dw BattleAnim_SludgeBomb
	dw BattleAnim_MudSlap
	dw BattleAnim_PowerGem
	dw BattleAnim_Spikes
	dw BattleAnim_ZapCannon
	dw BattleAnim_Foresight
	dw BattleAnim_DestinyBond
	dw BattleAnim_PerishSong
	dw BattleAnim_IcyWind
	dw BattleAnim_AirSlash
	dw BattleAnim_DarkPulse
	dw BattleAnim_EarthPower_Strength ;Earth Power
	dw BattleAnim_Outrage
	dw BattleAnim_Sandstorm
	dw BattleAnim_GigaDrain
	dw BattleAnim_Endure
	dw BattleAnim_Charm
	dw BattleAnim_Rollout
	dw BattleAnim_Vaporize
	dw BattleAnim_Swagger
	dw BattleAnim_CalmMind
	dw BattleAnim_Spark_WildCharge ;Spark
	dw BattleAnim_FuryCutter
	dw BattleAnim_SteelWing
	dw BattleAnim_MeanLook
	dw BattleAnim_Attract
	dw BattleAnim_SleepTalk
	dw BattleAnim_HealBell
	dw BattleAnim_Return
	dw BattleAnim_PsychoCut
	dw BattleAnim_Frustration
	dw BattleAnim_Safeguard
	dw BattleAnim_PainSplit
	dw BattleAnim_FlareBlitz_SacredFire ;Sacred Fire
	dw BattleAnim_Magnitude
	dw BattleAnim_DynamicPunch
	dw BattleAnim_Megahorn
	dw BattleAnim_Dragonbreath
	dw BattleAnim_BatonPass
	dw BattleAnim_Encore
	dw BattleAnim_Pursuit
	dw BattleAnim_RapidSpin
	dw BattleAnim_SweetScent
	dw BattleAnim_IronTail
	dw BattleAnim_MetalClaw
	dw BattleAnim_Miasma
	dw BattleAnim_MorningSun
	dw BattleAnim_Synthesis
	dw BattleAnim_Moonlight
	dw BattleAnim_HiddenPower
	dw BattleAnim_CrossChop
	dw BattleAnim_Twister
	dw BattleAnim_RainDance
	dw BattleAnim_SunnyDay
	dw BattleAnim_Crunch
	dw BattleAnim_Boil
	dw BattleAnim_ShadowClaw
	dw BattleAnim_AerialAce_ExtremeSpeed ;ExtremeSpeed
	dw BattleAnim_AncientPower
	dw BattleAnim_ShadowBall
	dw BattleAnim_FutureSight
	dw BattleAnim_RockSmash
	dw BattleAnim_Toxic_SteelEater ;Steel Eater
	dw BattleAnim_GhostHammer
	dw BattleAnim_Moonblast
	dw BattleAnim_PlayRough
	dw BattleAnim_NoisePulse
	dw BattleAnim_SweetScent2
; $100
	dw BattleAnim_ThrowPokeBall
	dw BattleAnim_SendOutMon
	dw BattleAnim_ReturnMon
	dw BattleAnim_Confused
	dw BattleAnim_Slp
	dw BattleAnim_Brn
	dw BattleAnim_Psn
	dw BattleAnim_Sap
	dw BattleAnim_Frz
	dw BattleAnim_Par
	dw BattleAnim_InLove
	dw BattleAnim_InSandstorm
	dw BattleAnim_InNightmare
	dw BattleAnim_InWhirlpool
	dw BattleAnim_NoAnimation ;miss
	dw BattleAnim_EnemyDamage
	dw BattleAnim_EnemyStatDown
	dw BattleAnim_PlayerStatDown
	dw BattleAnim_PlayerDamage
	dw BattleAnim_Wobble
	dw BattleAnim_Shake
	dw BattleAnim_HitConfusion
	dw BattleAnim_Hail ;in hailstorm

BattleAnim_FairyWind:
BattleAnim_SweetScent2:
	anim_sound 0, 0, SFX_SWEET_SCENT
	anim_2gfx ANIM_GFX_FLOWER, ANIM_GFX_MISC
	anim_obj ANIM_OBJ_FLOWER, 8, 0, 12, 0, 2
	anim_wait 2
	anim_obj ANIM_OBJ_FLOWER, 8, 0, 10, 0, 2
	anim_wait 64
	anim_obp0 $54
	anim_sound 0, 1, SFX_SWEET_SCENT_2
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $15
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $2a
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $3f
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_wait 128
BattleAnim_NoAnimation:
	anim_ret

BattleAnim_ThrowPokeBall:
	anim_jumpif NO_ITEM, .TheTrainerBlockedTheBall
	anim_jumpif MASTER_BALL, .MasterBall
	anim_jumpif SHINY_BALL, .MasterBall
	; any other ball
	anim_2gfx ANIM_GFX_POKE_BALL, ANIM_GFX_SMOKE
	anim_sound 6, 2, SFX_THROW_BALL
	anim_obj ANIM_OBJ_POKE_BALL, 8, 4, 11, 4, $40
	anim_wait 36
	anim_obj ANIM_OBJ_POKE_BALL, 17, 0, 8, 1, 0
	anim_setobj 2, 7
	anim_wait 16
	anim_sound 0, 1, SFX_BALL_POOF
	anim_obj ANIM_OBJ_BALL_POOF, 17, 0, 8, 0, $10
	anim_wait 16
	anim_jump .Shake

.TheTrainerBlockedTheBall
	anim_2gfx ANIM_GFX_POKE_BALL, ANIM_GFX_HIT
	anim_sound 6, 2, SFX_THROW_BALL
	anim_obj ANIM_OBJ_POKE_BALL_BLOCKED, 8, 0, 11, 4, $20
	anim_wait 20
	anim_obj ANIM_OBJ_01, 14, 0, 5, 0, 0
	anim_wait 32
	anim_ret

.MasterBall
	anim_3gfx ANIM_GFX_POKE_BALL, ANIM_GFX_SMOKE, ANIM_GFX_SPEED
	anim_sound 6, 2, SFX_THROW_BALL
	anim_obj ANIM_OBJ_POKE_BALL, 8, 0, 11, 4, $20
	anim_wait 36
	anim_obj ANIM_OBJ_POKE_BALL, 17, 0, 8, 1, 0
	anim_setobj 2, 7
	anim_wait 16
	anim_sound 0, 1, SFX_BALL_POOF
	anim_obj ANIM_OBJ_BALL_POOF, 17, 0, 8, 0, $10
	anim_wait 24
	anim_sound 0, 1, SFX_MASTER_BALL
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $30
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $31
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $32
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $33
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $34
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $35
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $36
	anim_obj ANIM_OBJ_MASTER_BALL_SPARKLE, 17, 0, 7, 0, $37
	anim_wait 64
.Shake
	anim_bgeffect ANIM_BG_RETURN_MON, 0, 0, 0
	anim_wait 8
	anim_incobj 2
	anim_wait 16
	anim_sound 0, 1, SFX_CHANGE_DEX_MODE
	anim_incobj 1
	anim_wait 16
	anim_checkcriticalcapture
	anim_jumpvar 0, .not_critical
	anim_setobj 1, $c
	anim_wait 12
	anim_incobj 1
	anim_wait 24
	anim_setobj 1, 4
.not_critical
	anim_wait 16
	anim_sound 0, 1, SFX_BALL_BOUNCE
	anim_wait 32
	anim_wait 32
	anim_wait 32
	anim_wait 8
	anim_setvar 0
.Loop
	anim_shakedelay
	anim_checkpokeball
	anim_jumpvar 1, .Click
	anim_jumpvar 2, .BreakFree
	anim_incobj 1
	anim_sound 0, 1, SFX_BALL_WIGGLE
	anim_jump .Loop

.Click
	anim_2gfx ANIM_GFX_POKE_BALL, ANIM_GFX_SPEED
	; write and insert an anim_obj
	anim_darkenball
	anim_insobj 1, ANIM_OBJ_SHINY, 15, 4, 8, 0, 0
	anim_sound 0, 1, SFX_PECK
	anim_wait 4
	anim_insobj 1, ANIM_OBJ_SHINY, 15, 0, 8, 4, 0
	anim_sound 0, 1, SFX_PECK
	anim_wait 4
	anim_insobj 1, ANIM_OBJ_SHINY, 14, 4, 7, 4, 0
	anim_wait 20
	anim_clearsprites
	anim_ret

.BreakFree
	anim_setobj 1, $b
	anim_sound 0, 1, SFX_BALL_POOF
	anim_obj ANIM_OBJ_BALL_POOF, 17, 0, 8, 0, $10
	anim_wait 2
	anim_bgeffect ANIM_BG_ENTER_MON, 0, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_SendOutMon:
	anim_jumpif 0, .Normal
	anim_jumpif 1, .Shiny ; just in case
	anim_ret

.Shiny
	anim_1gfx ANIM_GFX_SPEED
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, 0
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, 8
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $10
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $18
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $20
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $28
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $30
	anim_wait 4
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SHINY, 6, 0, 12, 0, $38
	anim_wait 32
	anim_ret

.Normal
	anim_jumpifpmode .PMode
	anim_1gfx ANIM_GFX_SMOKE
	anim_sound 0, 0, SFX_BALL_POOF
	anim_obj ANIM_OBJ_BALL_POOF, 5, 4, 12, 0, 0
	anim_wait 4
	anim_bgeffect ANIM_BG_ENTER_MON, 0, 1, 0
	anim_wait 32
	anim_ret
.PMode
	anim_bgeffect ANIM_BG_SLIDE_IN_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_ReturnMon:
	anim_jumpifpmode BattleAnim_ReturnMon_PMode
	anim_sound 0, 0, SFX_BALL_POOF
BattleAnim_ReturnMon_NoBallSound:
	anim_bgeffect ANIM_BG_RETURN_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_ReturnMon_PMode:
	anim_bgeffect ANIM_BG_SLIDE_OUT_MON, 0, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_Confused:
	anim_1gfx ANIM_GFX_STATUS
	anim_sound 0, 0, SFX_KINESIS
	anim_obj ANIM_OBJ_CHICK, 5, 4, 7, 0, $15
	anim_obj ANIM_OBJ_CHICK, 5, 4, 7, 0, $aa
	anim_obj ANIM_OBJ_CHICK, 5, 4, 7, 0, $bf
	anim_wait 96
	anim_ret

BattleAnim_Slp:
	anim_1gfx ANIM_GFX_STATUS
	anim_sound 0, 0, SFX_TAIL_WHIP
.loop
	anim_obj ANIM_OBJ_ASLEEP, 8, 0, 10, 0, 0
	anim_wait 40
	anim_loop 3, .loop
	anim_wait 32
	anim_ret

BattleAnim_Brn:
	anim_1gfx ANIM_GFX_FIRE
.loop
	anim_sound 0, 0, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 7, 0, 11, 0, $10
	anim_wait 4
	anim_loop 3, .loop
	anim_wait 6
	anim_ret

BattleAnim_Psn:
	anim_1gfx ANIM_GFX_POISON
	anim_sound 0, 0, SFX_POISON
	anim_obj ANIM_OBJ_SKULL, 8, 0, 7, 0, 0
	anim_wait 8
	anim_sound 0, 0, SFX_POISON
	anim_obj ANIM_OBJ_SKULL, 6, 0, 7, 0, 0
	anim_wait 8
	anim_ret

BattleAnim_Sap:
	anim_1gfx ANIM_GFX_CHARGE
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 16, 0, 6, 0, 2
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 8, 0, 3
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 4, 0, 4
	anim_wait 16
	anim_ret

BattleAnim_Frz:
	anim_1gfx ANIM_GFX_ICE
	anim_obj ANIM_OBJ_FROZEN, 5, 4, 13, 6, 0
	anim_sound 0, 0, SFX_SHINE
	anim_wait 16
	anim_sound 0, 0, SFX_SHINE
	anim_wait 16
	anim_ret

BattleAnim_Par:
	anim_1gfx ANIM_GFX_STATUS
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_PARALYZED, 2, 4, 11, 0, $42
	anim_obj ANIM_OBJ_PARALYZED, 9, 4, 11, 0, $c2
	anim_wait 128
	anim_ret

BattleAnim_InLove:
	anim_1gfx ANIM_GFX_OBJECTS
	anim_sound 0, 0, SFX_LICK
	anim_obj ANIM_OBJ_HEART, 8, 0, 9, 4, 0
	anim_wait 32
	anim_sound 0, 0, SFX_LICK
	anim_obj ANIM_OBJ_HEART, 4, 4, 9, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_InNightmare:
	anim_1gfx ANIM_GFX_ANGELS
	anim_sound 0, 0, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_IN_NIGHTMARE, 8, 4, 10, 0, 0
	anim_wait 40
	anim_ret

BattleAnim_InWhirlpool:
	anim_1gfx ANIM_GFX_WIND
	anim_bgeffect ANIM_BG_WHIRLPOOL, 0, 0, 0
	anim_sound 0, 1, SFX_SURF
.loop
	anim_obj ANIM_OBJ_GUST, -16, 4, 9, 0, 0
	anim_wait 6
	anim_loop 6, .loop
	anim_incbgeffect ANIM_BG_WHIRLPOOL
	anim_wait 1
	anim_ret

BattleAnim_HitConfusion:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 0, SFX_POUND
	anim_obj ANIM_OBJ_04, 5, 4, 12, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_EnemyDamage:
.loop
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 0, 0
	anim_wait 5
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 5
	anim_loop 3, .loop
	anim_ret

BattleAnim_EnemyStatDown:
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 40
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_PlayerStatDown:
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_WOBBLE_MON, 0, 0, 0
	anim_wait 40
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_PlayerDamage:
	anim_bgeffect ANIM_BG_20, $20, 2, $20
	anim_wait 40
	anim_ret

BattleAnim_Wobble:
	anim_bgeffect ANIM_BG_35, 0, 0, 0
	anim_wait 40
	anim_ret

BattleAnim_Shake:
	anim_bgeffect ANIM_BG_1F, $20, 2, $40
	anim_wait 40
	anim_ret

BattleAnim_Pound:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_POUND
	anim_obj ANIM_OBJ_08, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_KarateChop:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_KARATE_CHOP
	anim_obj ANIM_OBJ_08, 17, 0, 5, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 5, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_KARATE_CHOP
	anim_obj ANIM_OBJ_08, 17, 0, 5, 4, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 5, 4, 0
	anim_wait 6
	anim_sound 0, 1, SFX_KARATE_CHOP
	anim_obj ANIM_OBJ_08, 17, 0, 6, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Doubleslap:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_DOUBLESLAP
	anim_jumpif 1, .second
	anim_obj ANIM_OBJ_08, 18, 0, 6, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, 0
	anim_wait 8
	anim_ret

.second
	anim_obj ANIM_OBJ_08, 15, 0, 6, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 15, 0, 6, 0, 0
	anim_wait 8
	anim_ret

BattleAnim_FinalChance:
	anim_jumpif 1, .Heal

	; Endure
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_bgeffect ANIM_BG_07, 0, 2, 0
.loop
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_47, 5, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 4, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 6, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 3, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 7, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 2, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 8, 4, 13, 4, 8
	anim_wait 2
	anim_loop 5, .loop
	anim_wait 8
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_ret

.Heal:
	anim_1gfx ANIM_GFX_SHINE
	anim_bgeffect ANIM_BG_07, 0, 0, 0
.Heal_loop
	anim_sound 0, 0, SFX_METRONOME
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 5, 0, 10, 4, 0
	anim_wait 5
	anim_loop 2, .Heal_loop
	anim_wait 32
	anim_ret

BattleAnim_DrainPunch:
	anim_2gfx ANIM_GFX_SPEED, ANIM_GFX_HIT
	anim_sound 0, 1, SFX_SUBMISSION
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_PLACE_PUZZLE_PIECE_DOWN
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 20
	anim_jump BattleAnim_Absorb

BattleAnim_MegaPunch:
	anim_1gfx ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_wait 48
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 3
.loop
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_loop 3, .loop
	anim_ret

BattleAnim_Stomp:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_STOMP
	anim_obj ANIM_OBJ_07, 17, 0, 5, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 5, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_STOMP
	anim_obj ANIM_OBJ_07, 17, 0, 5, 4, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 5, 4, 0
	anim_wait 6
	anim_sound 0, 1, SFX_STOMP
	anim_obj ANIM_OBJ_07, 17, 0, 6, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_DoubleKick:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_DOUBLE_KICK
	anim_jumpif 1, .second
	anim_obj ANIM_OBJ_07, 18, 0, 6, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, 0
	anim_wait 8
	anim_ret

.second
	anim_obj ANIM_OBJ_07, 15, 0, 8, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 15, 0, 8, 0, 0
	anim_wait 8
	anim_ret

BattleAnim_LaughingGas:
	anim_1gfx ANIM_GFX_HAZE
.loop
	anim_sound 0, 0, SFX_SWEET_SCENT
	anim_obj ANIM_OBJ_GAS_BLUE, 5, 4, 10, 0, 2
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 32
	anim_sound 0, 0, SFX_SWEET_SCENT_2
	anim_wait 128
	anim_ret

BattleAnim_HiJumpKick:
	anim_1gfx ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_jumpif 1, .hit_self
	anim_wait 32
	anim_sound 0, 1, SFX_JUMP_KICK
	anim_obj ANIM_OBJ_07, 14, 0, 9, 0, 0
	anim_setobj 1, 2
	anim_wait 16
	anim_sound 0, 1, SFX_DOUBLE_KICK
	anim_obj ANIM_OBJ_04, 17, 0, 6, 0, 0
	anim_wait 16
	anim_ret

.hit_self
	anim_wait 16
	anim_sound 0, 0, SFX_DOUBLE_KICK
	anim_obj ANIM_OBJ_04, 5, 4, 11, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_DragonPulse:
	; Meant to add ANIM_GFX_EGG like Shadow Ball,
	; but I think the corrupted graphics look better.
	; It kind of looks like the Rising Badge.
	anim_1gfx ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_sound 0, 0, SFX_OUTRAGE
	anim_wait 56
	anim_incbgeffect ANIM_BG_1A

	anim_bgp 0, 1, 2, 3
	anim_bgeffect ANIM_BG_1F, $60, 2, 0
.loop
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_SHADOW_BALL, 7, 6, 11, 4, 2
	anim_wait 3
	anim_obj ANIM_OBJ_SHADOW_BALL, 8, 2, 11, 4, 2
	anim_wait 3
	anim_loop 8, .loop
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_CosmicPower:
	anim_2gfx ANIM_GFX_GLOBE, ANIM_GFX_CHARGE
	anim_bgp 0, 1, 2, 3

	anim_obj ANIM_OBJ_MOON, 6, 0, 9, 0, 1
	anim_sound 0, 0, SFX_MOONLIGHT
	anim_wait 63

	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, 0
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, 8
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $10
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $18
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $20
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $28
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $30
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $38
	anim_wait 64
	anim_ret

BattleAnim_MeteorMash:
	anim_3gfx ANIM_GFX_OBJECTS, ANIM_GFX_SPEED, ANIM_GFX_HIT
	anim_sound 6, 2, SFX_METRONOME
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 11, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 9, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 9, 4, 4
	anim_wait 4
	anim_obj ANIM_OBJ_AE, 8, 0, 9, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_AE, 8, 0, 11, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_AE, 8, 0, 10, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_AE, 8, 0, 12, 0, 4
	anim_wait 4
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 24
	anim_ret

BattleAnim_DragonClaw:
	anim_2gfx ANIM_GFX_CUT, ANIM_GFX_FIRE
	anim_obp0 0, 1, 2, 3
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_obj ANIM_OBJ_3A, 18, 4, 4, 4, 0
	anim_obj ANIM_OBJ_3A, 18, 0, 4, 0, 0
	anim_obj ANIM_OBJ_3A, 17, 4, 3, 4, 0
	anim_wait 8
	anim_obj ANIM_OBJ_BURNED, 15, 0, 8, 4, 6
	anim_obj ANIM_OBJ_BURNED, 14, 0, 7, 4, 7
	anim_obj ANIM_OBJ_BURNED, 13, 0, 6, 4, 8
	anim_wait 16
	anim_sound 0, 0, SFX_BURN
	anim_wait 16
	anim_ret

BattleAnim_ShadowClaw:
	anim_1gfx ANIM_GFX_CUT

	anim_sound 0, 0, SFX_CURSE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1D, 0, 1, $80
	anim_wait 64

	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_obj ANIM_OBJ_3A, 18, 4, 4, 4, 0
	anim_obj ANIM_OBJ_3A, 18, 0, 4, 0, 0
	anim_wait 16

	anim_incbgeffect ANIM_BG_1D
	anim_call BattleAnim_ShowMon_0
	anim_wait 4
	anim_ret

BattleAnim_PsychoCut:
	anim_2gfx ANIM_GFX_CUT, ANIM_GFX_PSYCHIC

	anim_obp0 $e0
	anim_sound 0, 1, SFX_MEAN_LOOK
	anim_obj ANIM_OBJ_MEAN_LOOK, 16, 4, 3, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 14, 4, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 19, 4, 5, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 13, 4, 5, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 18, 4, 8, 0, 0
	anim_wait 5

	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 0, 1, SFX_VICEGRIP
	anim_obj ANIM_OBJ_3A, 18, 0, 4, 0, 0
	anim_wait 12
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_obj ANIM_OBJ_3A, 20, 0, 5, 0, 0
	anim_wait 12
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 0, 1, SFX_VICEGRIP
	anim_obj ANIM_OBJ_3A, 16, 2, 3, 2, 0
	anim_wait 12
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 0, 1, SFX_VICEGRIP
	anim_obj ANIM_OBJ_3A, 19, 3, 6, 4, 0
	anim_wait 12
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_obj ANIM_OBJ_3A, 17, 3, 5, 4, 0
	anim_wait 12
	anim_ret

BattleAnim_Ember:
	anim_1gfx ANIM_GFX_FIRE
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_EMBER, 8, 0, 12, 0, $12
	anim_wait 4
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_EMBER, 8, 0, 12, 4, $14
	anim_wait 4
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_EMBER, 8, 0, 10, 4, $13
	anim_wait 16
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_sound 0, 1, SFX_EMBER
	anim_obj ANIM_OBJ_EMBER, 15, 0, 8, 4, $30
	anim_obj ANIM_OBJ_EMBER, -16, 4, 8, 4, $30
	anim_obj ANIM_OBJ_EMBER, 18, 0, 8, 4, $30
	anim_wait 32
	anim_ret

BattleAnim_FirePunch:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_FIRE
	anim_obj ANIM_OBJ_0A, 17, 0, 7, 0, $43
	anim_call BattleAnim_FirePunch_branch_cbbcc
	anim_wait 16
	anim_ret

BattleAnim_FireSpin:
	anim_1gfx ANIM_GFX_FIRE
.loop
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_SPIN, 8, 0, 11, 0, 4
	anim_wait 2
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_SPIN, 8, 0, 12, 0, 3
	anim_wait 2
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_SPIN, 8, 0, 11, 0, 3
	anim_wait 2
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_SPIN, 8, 0, 12, 0, 4
	anim_wait 2
	anim_loop 2, .loop
	anim_wait 96
	anim_ret

BattleAnim_SteelShine:
	anim_bgeffect ANIM_BG_17, 0, 1, $40
	anim_wait 2
	anim_sound 0, 0, SFX_SHINE
.loop
	anim_obj ANIM_OBJ_HARDEN, 6, 0, 10, 4, 0
	anim_wait 24
	anim_loop 2, .loop
	anim_incbgeffect ANIM_BG_17
	anim_ret

BattleAnim_BulletPunch:
	anim_3gfx ANIM_GFX_REFLECT, ANIM_GFX_SPEED, ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_obp0 0, 0, 0, 0
	anim_call BattleAnim_SteelShine
	anim_call BattleAnim_ShowMon_0
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_resetobp0
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_SPEED_LINE, 3, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SPEED_LINE, 4, 0, 11, 0, 1
	anim_obj ANIM_OBJ_SPEED_LINE, 5, 0, 11, 0, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 6, 0, 11, 0, $80
	anim_obj ANIM_OBJ_SPEED_LINE, 7, 0, 11, 0, $81
	anim_obj ANIM_OBJ_SPEED_LINE, 8, 0, 11, 0, $82
	anim_wait 8
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 8
	anim_ret

BattleAnim_Flamethrower:
	anim_1gfx ANIM_GFX_FIRE
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FLAMETHROWER, 8, 0, 11, 4, 3
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 9, 3, 10, 6, 5
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 10, 5, 10, 1, 7
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 12, 0, 9, 4, 9
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 13, 2, 8, 7, $b
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 14, 4, 8, 2, $c
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 15, 6, 7, 5, $a
	anim_wait 2
	anim_obj ANIM_OBJ_FLAMETHROWER, 17, 0, 7, 0, 8
	anim_wait 16
.loop
	anim_sound 0, 1, SFX_EMBER
	anim_wait 16
	anim_loop 6, .loop
	anim_wait 16
	anim_ret

BattleAnim_FireBlast:
	anim_1gfx ANIM_GFX_FIRE
.loop1
	anim_sound 6, 2, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_BLAST, 8, 0, 11, 4, 7
	anim_wait 6
	anim_loop 10, .loop1
.loop2
	anim_sound 0, 1, SFX_EMBER
	anim_wait 8
	anim_loop 10, .loop2
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_incobj 4
	anim_incobj 5
	anim_incobj 6
	anim_incobj 7
	anim_incobj 8
	anim_incobj 9
	anim_incobj 10
	anim_wait 2
.loop3
	anim_sound 0, 1, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 7, 0, 1
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 7, 0, 2
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 7, 0, 3
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 7, 0, 4
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 7, 0, 5
	anim_wait 16
	anim_loop 2, .loop3
	anim_wait 32
	anim_ret

BattleAnim_IcePunch:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_ICE
	anim_obj ANIM_OBJ_0A, 17, 0, 7, 0, $43
	anim_call BattleAnim_IcePunch_branch_cbbdf
	anim_wait 32
	anim_ret

BattleAnim_IceBeam:
	anim_1gfx ANIM_GFX_ICE
.loop
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_ICE_BEAM, 8, 0, 11, 4, 4
	anim_wait 4
	anim_loop 5, .loop
	anim_obj ANIM_OBJ_ICE_BUILDUP, 17, 0, 9, 2, $10
.loop2
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_ICE_BEAM, 8, 0, 11, 4, 4
	anim_wait 4
	anim_loop 15, .loop2
	anim_wait 48
	anim_sound 0, 1, SFX_SHINE
	anim_wait 8
	anim_sound 0, 1, SFX_SHINE
	anim_wait 8
	anim_ret

BattleAnim_Blizzard:
	anim_1gfx ANIM_GFX_ICE
.loop
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_BLIZZARD, 8, 0, 11, 0, $63
	anim_wait 2
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_BLIZZARD, 8, 0, 10, 0, $64
	anim_wait 2
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_BLIZZARD, 8, 0, 12, 0, $63
	anim_wait 2
	anim_loop 3, .loop
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_wait 32
	anim_obj ANIM_OBJ_ICE_BUILDUP, 17, 0, 9, 2, $10
	anim_wait 128
	anim_sound 0, 1, SFX_SHINE
	anim_wait 8
	anim_sound 0, 1, SFX_SHINE
	anim_wait 24
	anim_ret

BattleAnim_Bubble:
	anim_1gfx ANIM_GFX_BUBBLE
	anim_sound 32, 2, SFX_WATER_GUN
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $c1
	anim_wait 6
	anim_sound 32, 2, SFX_WATER_GUN
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $e1
	anim_wait 6
	anim_sound 32, 2, SFX_WATER_GUN
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $d1
	anim_wait 128
	anim_wait 32
	anim_ret

BattleAnim_Bubblebeam:
	anim_1gfx ANIM_GFX_BUBBLE
.loop
	anim_sound 16, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $92
	anim_wait 6
	anim_sound 16, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $b3
	anim_wait 6
	anim_sound 16, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_BUBBLE, 8, 0, 11, 4, $f4
	anim_wait 8
	anim_loop 3, .loop
	anim_wait 64
	anim_clearobjs
	anim_bgeffect ANIM_BG_30, 0, 0, 0
	anim_wait 1
	anim_call BattleAnim_FollowPlayerHead_1
	anim_bgeffect ANIM_BG_31, $1c, 0, 0
	anim_wait 19
	anim_call BattleAnim_ShowMon_1
	anim_bgeffect ANIM_BG_32, 0, 0, 0
	anim_wait 8
	anim_ret

BattleAnim_WaterGun:
	anim_bgeffect ANIM_BG_30, 0, 0, 0
	anim_1gfx ANIM_GFX_WATER
	anim_call BattleAnim_FollowPlayerHead_1
	anim_sound 16, 2, SFX_WATER_GUN
	anim_obj ANIM_OBJ_WATER_GUN, 8, 0, 11, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_WATER_GUN, 8, 0, 9, 4, 0
	anim_wait 8
	anim_obj ANIM_OBJ_WATER_GUN, 8, 0, 10, 2, 0
	anim_wait 24
	anim_bgeffect ANIM_BG_31, $1c, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_31, 8, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_31, $30, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_bgeffect ANIM_BG_32, 0, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_HydroPump:
	anim_bgeffect ANIM_BG_30, 0, 0, 0
	anim_1gfx ANIM_GFX_WATER
	anim_call BattleAnim_FollowPlayerHead_1
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 13, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, $1c, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 14, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, 8, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 15, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, $30, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, -16, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, $1c, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 17, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, 8, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 18, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, $30, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_HYDRO_PUMP
	anim_obj ANIM_OBJ_HYDRO_PUMP, 19, 4, 9, 0, 0
	anim_bgeffect ANIM_BG_31, $1c, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_bgeffect ANIM_BG_32, 0, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Surf:
	anim_1gfx ANIM_GFX_BUBBLE
	anim_bgeffect ANIM_BG_SURF, 0, 0, 0
	anim_obj ANIM_OBJ_SURF, 11, 0, 13, 0, 8
.loop
	anim_sound 0, 1, SFX_SURF
	anim_wait 32
	anim_loop 4, .loop
	anim_incobj 1
	anim_wait 56
	anim_ret

BattleAnim_VineWhip:
	anim_1gfx ANIM_GFX_WHIP
	anim_sound 0, 1, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_40, 14, 4, 6, 4, $80
	anim_wait 4
	anim_sound 0, 1, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_3F, 16, 0, 7, 4, 0
	anim_wait 4
	anim_incobj 1
	anim_wait 4
	anim_ret

BattleAnim_LeechSeed:
	anim_1gfx ANIM_GFX_PLANT
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $20
	anim_wait 8
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $30
	anim_wait 8
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $28
	anim_wait 32
	anim_sound 0, 1, SFX_CHARGE
	anim_wait 128
	anim_ret

BattleAnim_SpringBuds:
	anim_1gfx ANIM_GFX_PLANT

	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 6, 0, $20
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 8, 0, $20
	anim_wait 2

	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 6, 2, $26
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 5, 4, $28
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 6, 2, $2a
	anim_wait 2

	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 5, 0, $30
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 5, 6, $33
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 6, 6, $34
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 7, 6, $33
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_SPRING_BUD, 6, 0, 8, 6, $30
	anim_wait 48
	anim_sound 0, 1, SFX_SPARK
	anim_wait 16

	anim_ret

BattleAnim_RazorLeaf:
	anim_1gfx ANIM_GFX_PLANT
	anim_sound 0, 0, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $28
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $5c
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $10
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $e8
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $9c
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $d0
	anim_wait 6
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $1c
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $50
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $dc
	anim_obj ANIM_OBJ_RAZOR_LEAF, 6, 0, 10, 0, $90
	anim_wait 80
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 3
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 5
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 7
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 9
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 1
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 2
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 4
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 6
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 8
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_incobj 10
	anim_wait 64
	anim_ret

BattleAnim_Solarbeam:
	anim_jumpif 0, .beam
	anim_1gfx ANIM_GFX_CHARGE
	anim_sound 0, 0, SFX_CHARGE
	anim_obj ANIM_OBJ_3D, 6, 0, 10, 4, 0
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 0
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 8
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $10
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $18
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $20
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $28
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $30
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, $38
	anim_wait 104
	anim_bgeffect ANIM_BG_FLASH_WHITE, 0, 4, 2
	anim_wait 64
	anim_ret

.beam
	anim_1gfx ANIM_GFX_BEAM
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_call BattleAnim_Solarbeam_branch_cbb39
	anim_wait 48
	anim_ret

BattleAnim_Thunderpunch:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_LIGHTNING
	anim_obj ANIM_OBJ_0A, 17, 0, 7, 0, $43
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 2
	anim_sound 0, 1, SFX_THUNDER
	anim_obj ANIM_OBJ_2F, 19, 0, 8, 4, 0
	anim_wait 64
	anim_ret

BattleAnim_Thundershock:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_EXPLOSION
	anim_obj ANIM_OBJ_34, 17, 0, 7, 0, 2
	anim_wait 16
	anim_sound 0, 1, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_33, 17, 0, 7, 0, 0
	anim_wait 96
	anim_ret

BattleAnim_Thunderbolt:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_EXPLOSION
	anim_obj ANIM_OBJ_LIGHTNING_BOLT, 17, 0, 7, 0, 2
	anim_wait 16
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_sound 0, 1, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_31, 17, 0, 7, 0, 0
	anim_wait 64
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_wait 64
	anim_ret

BattleAnim_ThunderWave:
	anim_1gfx ANIM_GFX_LIGHTNING
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_sound 0, 1, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_THUNDER_WAVE, 17, 0, 7, 0, 0
	anim_wait 20
	anim_bgp $1b
	anim_incobj 1
	anim_wait 96
	anim_ret

BattleAnim_Thunder:
	anim_1gfx ANIM_GFX_LIGHTNING
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, $20
	anim_sound 0, 1, SFX_THUNDER
	anim_obj ANIM_OBJ_2E, 15, 0, 8, 4, 0
	anim_wait 16
	anim_sound 0, 1, SFX_THUNDER
	anim_obj ANIM_OBJ_2F, 19, 0, 8, 4, 0
	anim_wait 16
	anim_sound 0, 1, SFX_THUNDER
	anim_obj ANIM_OBJ_2D, 17, 0, 8, 4, 0
	anim_wait 48
	anim_ret

BattleAnim_AirSlash:
	anim_1gfx ANIM_GFX_WHIP
	anim_bgeffect ANIM_BG_06, 0, 1, 0
.loop
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_42, 19, 0, 5, 0, 3
	anim_wait 4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_42, 17, 0, 7, 0, 3
	anim_wait 4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_42, 19, 0, 8, 0, 3
	anim_wait 4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_41, 15, 0, 5, 0, $83
	anim_wait 4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_41, 15, 0, 8, 0, $83
	anim_wait 4
	anim_loop 3, .loop
	anim_wait 8
	anim_ret

BattleAnim_IronHead:
	anim_2gfx ANIM_GFX_REFLECT, ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_obp0 0, 0, 0, 0
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_call BattleAnim_SteelShine
	anim_resetobp0
	anim_sound 0, 1, SFX_TACKLE
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 4
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Gust:
	anim_2gfx ANIM_GFX_WIND, ANIM_GFX_HIT
.loop
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_GUST, 17, 0, 9, 0, 0
	anim_wait 6
	anim_loop 9, .loop
	anim_obj ANIM_OBJ_01, 18, 0, 8, 0, $18
	anim_wait 8
	anim_obj ANIM_OBJ_01, 16, 0, 4, 0, $18
	anim_wait 16
	anim_ret

BattleAnim_Selfdestruct:
	anim_1gfx ANIM_GFX_EXPLOSION
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $24
	anim_jumpif 1, .loop
	anim_call BattleAnim_Selfdestruct_branch_cbb8f
	anim_wait 16
	anim_ret

.loop
	anim_call BattleAnim_Selfdestruct_branch_cbb62
	anim_wait 5
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_loop 2, .loop
	anim_wait 16
	anim_ret

BattleAnim_Explosion:
	anim_1gfx ANIM_GFX_EXPLOSION
	anim_bgeffect ANIM_BG_1F, $60, 4, $10
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $24
	anim_jumpif 1, .loop
	anim_call BattleAnim_Explosion_branch_cbb8f
	anim_wait 16
	anim_ret

.loop
	anim_call BattleAnim_Explosion_branch_cbb62
	anim_wait 5
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_loop 2, .loop
	anim_wait 16
	anim_ret

BattleAnim_Acid:
	anim_1gfx ANIM_GFX_POISON
	anim_call BattleAnim_Acid_branch_cbc35
	anim_wait 64
	anim_ret

BattleAnim_RockThrow:
	anim_1gfx ANIM_GFX_ROCKS
	anim_bgeffect ANIM_BG_1F, $60, 1, 0
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 16, 0, 8, 0, $40
	anim_wait 2
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_BIG_ROCK, 15, 0, 8, 4, $30
	anim_wait 2
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 19, 0, 8, 4, $30
	anim_wait 2
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_BIG_ROCK, 18, 0, 8, 0, $40
	anim_wait 2
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 17, 0, 8, 4, $30
	anim_wait 96
	anim_ret

BattleAnim_RockSlide:
	anim_1gfx ANIM_GFX_ROCKS
	anim_bgeffect ANIM_BG_1F, $c0, 1, 0
.loop
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 16, 0, 8, 0, $40
	anim_wait 4
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_BIG_ROCK, 15, 0, 8, 4, $30
	anim_wait 4
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 19, 0, 8, 4, $30
	anim_wait 4
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_BIG_ROCK, 18, 0, 8, 0, $40
	anim_wait 4
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 17, 0, 8, 4, $30
	anim_wait 16
	anim_loop 4, .loop
	anim_wait 96
	anim_ret

BattleAnim_Sing:
	anim_1gfx ANIM_GFX_NOISE
	anim_sound 16, 2, SFX_SING
.loop
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 4, 0
	anim_wait 8
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 4, 1
	anim_wait 8
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 4, 2
	anim_wait 8
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 4, 0
	anim_wait 8
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 4, 2
	anim_wait 8
	anim_loop 4, .loop
	anim_wait 64
	anim_ret

BattleAnim_PowderBasedMove:
	anim_1gfx ANIM_GFX_POWDER
.loop
	anim_sound 0, 1, SFX_POWDER
	anim_obj ANIM_OBJ_POWDER, 13, 0, 2, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_POWDER
	anim_obj ANIM_OBJ_POWDER, 17, 0, 2, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_POWDER
	anim_obj ANIM_OBJ_POWDER, 14, 0, 2, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_POWDER
	anim_obj ANIM_OBJ_POWDER, 16, 0, 2, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_POWDER
	anim_obj ANIM_OBJ_POWDER, 15, 0, 2, 0, 0
	anim_wait 4
	anim_loop 2, .loop
	anim_wait 96
	anim_ret

BattleAnim_HyperBeam:
	anim_1gfx ANIM_GFX_BEAM
	anim_bgeffect ANIM_BG_1F, $30, 4, $10
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $40
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_call BattleAnim_HyperBeam_branch_cbb39
	anim_wait 48
	anim_ret

BattleAnim_FreezeBurn:
	anim_2gfx ANIM_GFX_ICE, ANIM_GFX_FIRE
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_wait 8

.loop
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 11, 0, $23
	anim_wait 1
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 10, 0, $24
	anim_wait 1
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 12, 0, $23
	anim_wait 1
	anim_loop 2, .loop
	anim_incobj 5
	anim_wait 40

	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 8, 4, 8
	anim_wait 2
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 8, 0, 16
	anim_wait 2
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 4, 24
	anim_wait 2
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 0, 32
	anim_wait 2
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 6, 4, 40
	anim_wait 2
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 0, 6, 0, 48
	anim_wait 12

	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 18, 0, 6, 0, 4
	anim_wait 1
	anim_obj ANIM_OBJ_BURNED, 18, 2, 6, 0, 8
	anim_wait 1
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 6, 6, 0, 12
	anim_wait 1
	anim_obj ANIM_OBJ_BURNED, 18, 4, 6, 0, 16
	anim_wait 1
	anim_sound 0, 1, SFX_BURN
	anim_obj ANIM_OBJ_BURNED, 17, 4, 6, 0, 20
	anim_wait 1
	anim_obj ANIM_OBJ_BURNED, 18, 0, 6, 0, 24
	anim_wait 32

	anim_ret

BattleAnim_BulkUp:
	anim_2gfx ANIM_GFX_MISC, ANIM_GFX_WIND
.loop
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 0, 0, SFX_NOT_VERY_EFFECTIVE
	anim_obj ANIM_OBJ_SWAGGER, 9, 4, 11, 0, $44
	anim_wait 32
	anim_loop 2, .loop
	anim_sound 0, 0, SFX_KINESIS
	anim_wait 16
	anim_ret

BattleAnim_Scratch:
	anim_1gfx ANIM_GFX_CUT
	anim_sound 0, 1, SFX_SCRATCH
	anim_obj ANIM_OBJ_37, 18, 0, 6, 0, 0
	anim_obj ANIM_OBJ_37, 17, 4, 5, 4, 0
	anim_obj ANIM_OBJ_37, 17, 0, 5, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_XScissor:
	anim_1gfx ANIM_GFX_CUT
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 18, 0, 6, 0, 0
	anim_obj ANIM_OBJ_3B, 15, 0, 6, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_1F, $58, 2, 0
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 18, 4, 5, 0, 0
	anim_obj ANIM_OBJ_3B, 14, 4, 5, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_1F, $58, 2, 0
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 4, 0, 0
	anim_obj ANIM_OBJ_3B, 14, 0, 4, 0, 0
	anim_wait 32

	anim_sound 0, 1, SFX_VICEGRIP
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $10
	anim_wait 4
	anim_obj ANIM_OBJ_3A, 18, 4, 5, 0, 0
	anim_obj ANIM_OBJ_3B, 14, 4, 5, 0, 0
	anim_wait 20

	anim_ret

BattleAnim_Cut:
	anim_1gfx ANIM_GFX_CUT
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_Slash:
	anim_1gfx ANIM_GFX_CUT
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_obj ANIM_OBJ_3A, 18, 4, 4, 4, 0
	anim_wait 32
	anim_ret

BattleAnim_StormFront:
	anim_jumpif 1, BattleAnim_RainDance

	anim_3gfx ANIM_GFX_WATER, ANIM_GFX_WIND, ANIM_GFX_HIT
	anim_bgp $f8
	anim_obp0 $7c

.loop1
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_GUST, 8, 0, 14, 0, 0
	anim_wait 6
	anim_loop 9, .loop1

	anim_sound 0, 1, SFX_RAIN_DANCE
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 1
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 2
	anim_wait 8

	anim_call .inc
	anim_wait 72

	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_01, 16, 0, 4, 0, $18
	anim_call .inc
	anim_wait 32
	anim_ret

.inc:
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_incobj 4
	anim_incobj 5
	anim_incobj 6
	anim_incobj 7
	anim_incobj 8
	anim_incobj 9
	anim_ret

BattleAnim_Bite:
	anim_2gfx ANIM_GFX_CUT, ANIM_GFX_HIT
	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $98
	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $18
	anim_wait 8
	anim_sound 0, 1, SFX_BITE
	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, $18
	anim_wait 16
	anim_sound 0, 1, SFX_BITE
	anim_obj ANIM_OBJ_01, 16, 0, 8, 0, $18
	anim_wait 8
	anim_ret

BattleAnim_Teleport:
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TELEPORT, 0, 1, 0
	anim_wait 32
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_wait 3
	anim_incbgeffect ANIM_BG_TELEPORT
	anim_call BattleAnim_ShowMon_0
	anim_bgeffect ANIM_BG_06, 0, 1, 0
	anim_call BattleAnim_Teleport_branch_cbb12
	anim_wait 64
	anim_ret

BattleAnim_Fly:
	anim_jumpif 1, .fly_up_high
	anim_jumpif 2, .miss
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 32
.miss
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 32
	anim_ret

.fly_up_high
	anim_1gfx ANIM_GFX_SPEED
	anim_bgeffect ANIM_BG_06, 0, 1, 0
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_call BattleAnim_Fly_branch_cbb12
	anim_wait 64
	anim_ret

BattleAnim_DoubleTeam:
	anim_call BattleAnim_FollowPlayerHead_0
	anim_sound 0, 0, SFX_PSYBEAM
	anim_bgeffect ANIM_BG_DOUBLE_TEAM, 0, 1, 0
	anim_wait 96
	anim_incbgeffect ANIM_BG_DOUBLE_TEAM
	anim_wait 24
	anim_incbgeffect ANIM_BG_DOUBLE_TEAM
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Recover:
	anim_1gfx ANIM_GFX_BUBBLE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_sound 0, 0, SFX_FULL_HEAL
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $30
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $31
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $32
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $33
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $34
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $35
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $36
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $37
	anim_wait 64
	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Absorb:
	anim_1gfx ANIM_GFX_CHARGE
	anim_obj ANIM_OBJ_3D, 5, 4, 11, 0, 0
.loop
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 16, 0, 6, 0, 2
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 8, 0, 3
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 4, 0, 4
	anim_wait 6
	anim_loop 5, .loop
	anim_wait 32
	anim_ret

BattleAnim_MegaDrain:
	anim_1gfx ANIM_GFX_CHARGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1C, 0, 0, $10
	anim_setvar 0
.loop
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 16, 0, 6, 0, 2
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 8, 0, 3
	anim_wait 6
	anim_sound 6, 3, SFX_WATER_GUN
	anim_obj ANIM_OBJ_ABSORB, 17, 0, 4, 0, 4
	anim_wait 6
	anim_incvar
	anim_jumpvar 7, .done
	anim_jumpvar 2, .spawn
	anim_jump .loop

.spawn
	anim_obj ANIM_OBJ_3D, 5, 4, 11, 0, 0
	anim_jump .loop

.done
	anim_wait 32
	anim_incbgeffect ANIM_BG_1C
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Metallurgy:
	anim_3gfx ANIM_GFX_REFLECT, ANIM_GFX_ROCKS, ANIM_GFX_HIT

	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_17, 0, 1, $40

	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_01, 6, 0, 13, 0, 0
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $28
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $5c
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $10
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $e8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $9c
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $d0
	anim_wait 6
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $1c
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $50
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $dc
	anim_obj ANIM_OBJ_METALLURGY_ROCKS, 6, 0, 12, 0, $90
	anim_wait 16

	anim_obp0 0, 0, 0, 0
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_HARDEN, 6, 0, 10, 4, 0
	anim_wait 24
	anim_obj ANIM_OBJ_HARDEN, 6, 0, 10, 4, 0
	anim_wait 24
	anim_incbgeffect ANIM_BG_17

	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Softboiled:
	anim_2gfx ANIM_GFX_EGG, ANIM_GFX_BUBBLE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_sound 0, 0, SFX_SWITCH_POKEMON
	anim_obj ANIM_OBJ_EGG, 5, 4, 13, 0, 6
	anim_wait 128
	anim_incobj 2
	anim_obj ANIM_OBJ_EGG, 9, 4, 13, 0, $b
	anim_wait 16
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_sound 0, 0, SFX_METRONOME
.loop
	anim_obj ANIM_OBJ_RECOVER, 5, 4, 11, 0, $20
	anim_wait 8
	anim_loop 8, .loop
	anim_wait 128
	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_FocusEnergy:
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_16, 0, 1, $40
	anim_bgeffect ANIM_BG_06, 0, 2, 0
.loop
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_47, 5, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 4, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 6, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 3, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 7, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 2, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 8, 4, 13, 4, 8
	anim_wait 2
	anim_loop 3, .loop
	anim_wait 8
	anim_incbgeffect ANIM_BG_16
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Astonish:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_bgeffect ANIM_BG_1F, 2, 2, 0
	anim_sound 0, 1, SFX_KINESIS_2
	anim_obj ANIM_OBJ_01, 16, 0, 6, 0, 0
	anim_wait 16
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Wrap:
	anim_1gfx ANIM_GFX_ROPE
	anim_sound 0, 1, SFX_BIND
	anim_obj ANIM_OBJ_48, -16, 4, 8, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_48, -16, 4, 7, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_48, -16, 4, 6, 0, 0
	anim_wait 64
	anim_sound 0, 1, SFX_BIND
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_wait 96
	anim_ret

BattleAnim_Confusion:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_1
	anim_sound 0, 1, SFX_PSYCHIC
	anim_bgeffect ANIM_BG_NIGHT_SHADE, 0, 0, 8
	anim_wait 128
	anim_incbgeffect ANIM_BG_NIGHT_SHADE
	anim_call BattleAnim_ShowMon_1
	anim_ret

BattleAnim_AuraSphere:
	anim_2gfx ANIM_GFX_BEAM, ANIM_GFX_WIND
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 3, 0, $10
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 6, 0, 2
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 11, 0, 8
	anim_wait 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 4, 0, 6
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 7, 0, $c
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 10, 0, 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 13, 0, $e
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_wait 32

	anim_bgeffect ANIM_BG_1F, 8, 2, $10
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_SUPER_EFFECTIVE
	anim_obj ANIM_OBJ_27, 8, 0, 11, 4, 0
	anim_incobj 8
	anim_wait 1
	anim_obj ANIM_OBJ_27, 10, 0, 10, 4, 0
	anim_incobj 9
	anim_wait 1
	anim_obj ANIM_OBJ_27, 12, 0, 9, 4, 0
	anim_incobj 10
	anim_wait 1
	anim_obj ANIM_OBJ_27, 14, 0, 8, 4, 0
	anim_obj ANIM_OBJ_28, 15, 6, 7, 6, 0
	anim_incobj 11
	anim_incobj 12
	anim_wait 2
	anim_obj ANIM_OBJ_28, 17, 4, 7, 0, 0
	anim_wait 2
	anim_incobj 13

	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Earthquake:
	anim_bgeffect ANIM_BG_1F, $60, 4, $10
.loop
	anim_sound 0, 1, SFX_EMBER
	anim_wait 24
	anim_loop 4, .loop
	anim_ret

BattleAnim_BassTremor:
	anim_1gfx ANIM_GFX_NOISE
.loop
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 2
	anim_bgeffect ANIM_BG_1F, $20, 3, 0
	anim_wait 16
	anim_sound 0, 1, SFX_EMBER
	anim_wait 24
	anim_loop 2, .loop
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $40
	anim_bgeffect ANIM_BG_1F, $40, 4, 0
	anim_wait 16
	anim_sound 0, 1, SFX_EMBER
	anim_wait 64
	anim_ret

BattleAnim_Growl:
	anim_1gfx ANIM_GFX_NOISE
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_cry $c0
.loop
	anim_call BattleAnim_Growl_branch_cbbbc
	anim_wait 16
	anim_loop 3, .loop
	anim_clearfirstbgeffect
	anim_wait 17
	anim_bgeffect ANIM_BG_19, 0, 0, $40
	anim_wait 64
	anim_incbgeffect ANIM_BG_19
	anim_wait 6
	anim_incobj 10
	anim_wait 8
	anim_ret

BattleAnim_Roar:
	anim_1gfx ANIM_GFX_NOISE
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_cry $40
.loop
	anim_call BattleAnim_Roar_branch_cbbbc
	anim_wait 16
	anim_loop 3, .loop
	anim_clearfirstbgeffect
	anim_wait 16
	anim_jumpif 0, .done
	anim_bgeffect ANIM_BG_27, 0, 0, 0
	anim_wait 64
.done
	anim_ret

BattleAnim_Supersonic:
	anim_1gfx ANIM_GFX_PSYCHIC
.loop
	anim_sound 6, 2, SFX_SUPERSONIC
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 4
	anim_loop 10, .loop
	anim_wait 64
	anim_ret

BattleAnim_Screech:
	anim_1gfx ANIM_GFX_PSYCHIC
	anim_bgeffect ANIM_BG_1F, 8, 1, $20
	anim_sound 6, 2, SFX_SCREECH
.loop
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 2
	anim_loop 2, .loop
	anim_wait 64
	anim_ret

BattleAnim_ConfuseRay:
	anim_1gfx ANIM_GFX_SPEED
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_08, 0, 4, 0
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, 0
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $80
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $88
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $90
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $98
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $a0
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $a8
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $b0
	anim_obj ANIM_OBJ_CONFUSE_RAY, 8, 0, 11, 0, $b8
.loop
	anim_sound 6, 2, SFX_WHIRLWIND
	anim_wait 16
	anim_loop 8, .loop
	anim_wait 32
	anim_ret

BattleAnim_Leer:
	anim_1gfx ANIM_GFX_BEAM
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_call BattleAnim_Leer_branch_cbadc
	anim_wait 16
	anim_ret

BattleAnim_Reflect:
	anim_1gfx ANIM_GFX_REFLECT
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_wait 24
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_wait 64
	anim_ret

BattleAnim_LightScreen:
	anim_2gfx ANIM_GFX_SPEED, ANIM_GFX_REFLECT
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_FLASH
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, 0
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, 8
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $10
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $18
	anim_wait 4
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $20
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $28
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $30
	anim_wait 4
	anim_obj ANIM_OBJ_SHINY, 9, 0, 10, 0, $38
	anim_wait 64
	anim_ret

BattleAnim_Amnesia:
	anim_1gfx ANIM_GFX_STATUS
	anim_sound 0, 0, SFX_LICK
	anim_obj ANIM_OBJ_AMNESIA, 8, 0, 10, 0, 2
	anim_wait 16
	anim_obj ANIM_OBJ_AMNESIA, 8, 4, 10, 0, 1
	anim_wait 16
	anim_obj ANIM_OBJ_AMNESIA, 9, 0, 10, 0, 0
	anim_wait 64
	anim_ret

BattleAnim_DizzyPunch:
	anim_2gfx ANIM_GFX_STATUS, ANIM_GFX_HIT
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, 17, 0, 5, 0, 0
	anim_obj ANIM_OBJ_02, 17, 0, 8, 0, 0
	anim_wait 16
	anim_sound 0, 1, SFX_KINESIS
	anim_obj ANIM_OBJ_CHICK, 17, 0, 3, 0, $15
	anim_obj ANIM_OBJ_CHICK, 17, 0, 3, 0, $aa
	anim_obj ANIM_OBJ_CHICK, 17, 0, 3, 0, $bf
	anim_wait 96
	anim_ret

BattleAnim_Rest:
	anim_1gfx ANIM_GFX_STATUS
	anim_sound 0, 0, SFX_TAIL_WHIP
.loop
	anim_obj ANIM_OBJ_ASLEEP, 8, 0, 10, 0, 0
	anim_wait 40
	anim_loop 3, .loop
	anim_wait 32
	anim_ret

BattleAnim_AcidArmor:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_ACID_ARMOR, 0, 1, 8
	anim_sound 0, 0, SFX_MEGA_PUNCH
	anim_wait 64
	anim_incbgeffect ANIM_BG_ACID_ARMOR
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Splash:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 0, SFX_VICEGRIP
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_BOUNCE_DOWN, 0, 1, 0
	anim_wait 96
	anim_incbgeffect ANIM_BG_BOUNCE_DOWN
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Dig:
	anim_2gfx ANIM_GFX_SAND, ANIM_GFX_HIT
	anim_jumpif 0, .hit
	anim_jumpif 2, .fail
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_DIG, 0, 1, 1
	anim_obj ANIM_OBJ_57, 9, 0, 13, 0, 0
.loop
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_56, 7, 0, 13, 0, 0
	anim_wait 16
	anim_loop 6, .loop
	anim_wait 32
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_wait 8
	anim_incbgeffect ANIM_BG_DIG
	anim_call BattleAnim_ShowMon_0
	anim_ret

.hit
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 32
.fail
	anim_bgeffect ANIM_BG_ENTER_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_SandAttack:
	anim_1gfx ANIM_GFX_SAND
	anim_call BattleAnim_SandAttack_branch_cbc5b
	anim_ret

BattleAnim_StringShot:
	anim_1gfx ANIM_GFX_WEB
	anim_bgeffect ANIM_BG_07, 0, 2, 0
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, 8, 0, 10, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, -16, 4, 6, 0, 1
	anim_wait 4
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, 8, 0, 11, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, -16, 4, 8, 0, 1
	anim_wait 4
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, 8, 0, 10, 4, 0
	anim_wait 4
	anim_sound 0, 1, SFX_MENU
	anim_obj ANIM_OBJ_STRING_SHOT, -16, 4, 7, 0, 2
	anim_wait 64
	anim_ret

BattleAnim_Headbutt:
	anim_1gfx ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_wait 32
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_HEADBUTT
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Tackle:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_00, 17, 0, 6, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_BodySlam:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_BOUNCE_DOWN, 0, 1, 0
	anim_wait 32
	anim_incbgeffect ANIM_BG_BOUNCE_DOWN
	anim_wait 4
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 3
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, 0
	anim_wait 3
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_TakeDown:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 3
	anim_sound 0, 1, SFX_TACKLE
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_obj ANIM_OBJ_01, 16, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_TACKLE
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 2
	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, 0
	anim_wait 3
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_DoubleEdge:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, $10
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 3
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_00, 16, 0, 6, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_00, 18, 0, 6, 0, 0
	anim_wait 3
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_LavaPool:
	anim_2gfx ANIM_GFX_ANGELS, ANIM_GFX_POISON
	anim_obp0 2, 1, 1, 0
	anim_jumpif 1, .residual

	anim_sound 16, 2, SFX_LICK
	anim_obj ANIM_OBJ_LAVA_POOL, 5, 4, 15, 0, 2
	anim_wait 56

.residual
.loop
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_BUBBLING_LAVA, -16, 4, 9, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_BUBBLING_LAVA, 14, 4, 9, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_BUBBLING_LAVA, 18, 4, 9, 0, 0
	anim_wait 8
	anim_loop 3, .loop
	anim_ret

BattleAnim_ZenHeadbutt:
	anim_1gfx ANIM_GFX_HIT

	anim_call BattleAnim_FollowEnemyFeet_0
	anim_sound 0, 0, SFX_PSYCHIC
	anim_bgeffect ANIM_BG_TELEPORT, 0, 1, 0
	anim_wait 32

	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_wait 16
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 2
	anim_wait 4
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8

	anim_incbgeffect ANIM_BG_TELEPORT
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Whirlwind:
	anim_1gfx ANIM_GFX_WIND
.loop
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_GUST, 8, 0, 14, 0, 0
	anim_wait 6
	anim_loop 9, .loop
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_incobj 4
	anim_incobj 5
	anim_incobj 6
	anim_incobj 7
	anim_incobj 8
	anim_incobj 9
	anim_sound 16, 2, SFX_WHIRLWIND
	anim_wait 128
	anim_jumpif 0, .done
	anim_bgeffect ANIM_BG_27, 0, 0, 0
	anim_wait 64
.done
	anim_ret

BattleAnim_Hypnosis:
	anim_1gfx ANIM_GFX_PSYCHIC
.loop
	anim_sound 6, 2, SFX_SUPERSONIC
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 7, 0, 10, 0, 2
	anim_wait 8
	anim_loop 3, .loop
	anim_wait 56
	anim_ret

BattleAnim_Haze:
	anim_1gfx ANIM_GFX_HAZE
	anim_sound 0, 1, SFX_SURF
.loop
	anim_obj ANIM_OBJ_HAZE, 6, 0, 7, 0, 0
	anim_obj ANIM_OBJ_HAZE, -16, 4, 2, 0, 0
	anim_wait 12
	anim_loop 5, .loop
	anim_wait 96
	anim_ret

BattleAnim_Mist:
	anim_obp0 $54
	anim_1gfx ANIM_GFX_HAZE
	anim_sound 0, 0, SFX_SURF
.loop
	anim_obj ANIM_OBJ_MIST, 6, 0, 7, 0, 0
	anim_wait 8
	anim_loop 10, .loop
	anim_wait 96
	anim_ret

BattleAnim_Smog:
	anim_1gfx ANIM_GFX_HAZE
	anim_sound 0, 1, SFX_BUBBLEBEAM
.loop
	anim_obj ANIM_OBJ_SMOG, -16, 4, 2, 0, 0
	anim_wait 8
	anim_loop 10, .loop
	anim_wait 96
	anim_ret

BattleAnim_PoisonGas:
	anim_1gfx ANIM_GFX_HAZE
	anim_sound 16, 2, SFX_BUBBLEBEAM
.loop
	anim_obj ANIM_OBJ_POISON_GAS, 5, 4, 10, 0, 2
	anim_wait 8
	anim_loop 10, .loop
	anim_wait 128
	anim_ret

BattleAnim_AquaJet:
	anim_3gfx ANIM_GFX_SPEED, ANIM_GFX_HIT, ANIM_GFX_WATER
	anim_sound 0, 0, SFX_MENU
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 3, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SPEED_LINE, 4, 0, 11, 0, 1
	anim_obj ANIM_OBJ_SPEED_LINE, 5, 0, 11, 0, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 6, 0, 11, 0, $80
	anim_obj ANIM_OBJ_SPEED_LINE, 7, 0, 11, 0, $81
	anim_obj ANIM_OBJ_SPEED_LINE, 8, 0, 11, 0, $82
	anim_wait 4
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_HYDRO_PUMP, 9, 4, 13, 0, 0
	anim_wait 2
	anim_obj ANIM_OBJ_HYDRO_PUMP, 10, 4, 12, 2, 0
	anim_wait 1
	anim_sound 0, 0, SFX_MENU
	anim_wait 1
	anim_obj ANIM_OBJ_HYDRO_PUMP, 11, 4, 11, 4, 0
	anim_wait 2
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_HYDRO_PUMP, 12, 4, 10, 6, 0
	anim_wait 2
	anim_obj ANIM_OBJ_HYDRO_PUMP, 13, 4, 10, 0, 0
	anim_wait 1
	anim_sound 0, 0, SFX_MENU
	anim_wait 1
	anim_obj ANIM_OBJ_HYDRO_PUMP, 14, 4, 9, 2, 0
	anim_wait 2
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_HYDRO_PUMP, 15, 4, 8, 4, 0
	anim_wait 3
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_ret

BattleAnim_PowerBallad:
	anim_1gfx ANIM_GFX_NOISE
.loop
	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_obj ANIM_OBJ_SING, 8, 0, 14, 0, 0
	anim_obj ANIM_OBJ_SING, 8, 0, 12, 4, 1
	anim_obj ANIM_OBJ_SING, 8, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SING, 8, 0, 9, 4, 0
	anim_wait 28
	anim_loop 4, .loop
	anim_wait 24
	anim_ret

BattleAnim_BugBuzz:
	anim_2gfx ANIM_GFX_NOISE, ANIM_GFX_PSYCHIC
.loop
	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_sound 0, 0, SFX_OUTRAGE
	anim_wait 8
	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_obj ANIM_OBJ_WAVE, 7, 0, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 9, 0, 11, 0, 2
	anim_wait 4
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 4
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_obj ANIM_OBJ_WAVE, 7, 4, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 8, 4, 11, 0, 2
	anim_wait 4
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 4
	anim_obj ANIM_OBJ_WAVE, 7, 6, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 8, 2, 11, 0, 2
	anim_wait 4
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 24
	anim_ret

BattleAnim_PoisonSting:
	anim_2gfx ANIM_GFX_HORN, ANIM_GFX_HIT
	anim_obj ANIM_OBJ_60, 8, 0, 11, 4, $14
	anim_wait 16
	anim_sound 0, 1, SFX_POISON_STING
	anim_obj ANIM_OBJ_05, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Moonblast:
	anim_3gfx ANIM_GFX_GLOBE, ANIM_GFX_BEAM, ANIM_GFX_AEROBLAST
	anim_bgp 0, 1, 2, 3

	anim_obj ANIM_OBJ_MOON, 6, 0, 9, 0, 1
	anim_sound 0, 0, SFX_MOONLIGHT
	anim_wait 63

	anim_bgeffect ANIM_BG_1F, $50, 4, $10
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_AEROBLAST, 9, 0, 11, 0, 0
	anim_wait 32
	anim_sound 0, 0, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 10, 0, 10, 4, 0
	anim_wait 2
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 12, 0, 9, 4, 0
	anim_wait 2
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 14, 0, 8, 4, 0
	anim_obj ANIM_OBJ_28, 15, 6, 7, 6, 0
	anim_wait 48

	anim_ret

BattleAnim_PinMissile:
	anim_2gfx ANIM_GFX_HORN, ANIM_GFX_HIT
.loop
	anim_obj ANIM_OBJ_60, 8, 0, 11, 4, $28
	anim_wait 8
	anim_obj ANIM_OBJ_60, 7, 0, 10, 4, $28
	anim_sound 0, 1, SFX_POISON_STING
	anim_obj ANIM_OBJ_05, 17, 0, 7, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_60, 6, 4, 11, 0, $28
	anim_sound 0, 1, SFX_POISON_STING
	anim_obj ANIM_OBJ_05, 16, 0, 6, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_POISON_STING
	anim_obj ANIM_OBJ_05, -16, 4, 6, 4, 0
	anim_loop 3, .loop
	anim_wait 16
	anim_ret

BattleAnim_DustDevil:
	anim_2gfx ANIM_GFX_WIND, ANIM_GFX_ROCKS

.loop
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_GUST, -16, 4, 9, 0, 0
	anim_call .rocks1
	anim_wait 4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_wait 2
	anim_obj ANIM_OBJ_GUST, -16, 4, 9, 0, 0
	anim_call .rocks2
	anim_wait 2
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_wait 4
	anim_obj ANIM_OBJ_GUST, -16, 4, 9, 0, 0
	anim_loop 6, .loop

	anim_ret

.rocks1
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $28
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $5c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $10
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $e8
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $9c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $d0
	anim_ret

.rocks2
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $1c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $50
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $dc
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $90
	anim_ret

BattleAnim_Transform:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_transform
	anim_sound 0, 0, SFX_PSYBEAM
	anim_bgeffect ANIM_BG_WAVE_DEFORM_USER, 0, 1, 0
	anim_wait 48
	anim_updateactorpic
	anim_incbgeffect ANIM_BG_WAVE_DEFORM_USER
	anim_wait 48
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_HyperVoice:
	anim_2gfx ANIM_GFX_NOISE, ANIM_GFX_PSYCHIC
.loop
	anim_bgeffect ANIM_BG_1F, $14, 2, 0
	anim_sound 0, 0, SFX_SNORE
	anim_call BattleAnim_Snore_branch_cbbbc
	anim_obj ANIM_OBJ_WAVE, 7, 0, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 7, 0, 13, 0, 2
	anim_obj ANIM_OBJ_WAVE, 9, 0, 11, 0, 2
	anim_obj ANIM_OBJ_WAVE, 9, 0, 13, 0, 2
	anim_sound 6, 2, SFX_SCREECH
	anim_wait 24
	anim_loop 2, .loop
	anim_wait 24
	anim_ret

BattleAnim_PrismSpray:
	anim_2gfx ANIM_GFX_SHINE, ANIM_GFX_EXPLOSION
	anim_bgp $1b
	anim_bgeffect ANIM_BG_07, 0, 0, 0

	anim_obj ANIM_OBJ_MOONLIGHT, 0, 0, 5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2, 0, 7, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4, 0, 9, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6, 0, 11, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8, 0, 13, 0, 0
	anim_wait 1
	anim_sound 0, 0, SFX_SHINE
	anim_wait 2
	anim_call .inc

	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_18, 9, 0, 14, 0, 0

	anim_obj ANIM_OBJ_MOONLIGHT, 0+2, 0, 5-2, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2+2, 0, 7-2, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4+2, 0, 9-2, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6+2, 0, 11-2, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8+2, 0, 13-2, 4, 0
	anim_wait 1
	anim_sound 0, 0, SFX_SHINE
	anim_wait 2
	anim_call .inc

	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_18, 9+2, 0, 14-2, 4, 0

	anim_obj ANIM_OBJ_MOONLIGHT, 0+4, 0, 5-5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2+4, 0, 7-5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4+4, 0, 9-5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6+4, 0, 11-5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8+4, 0, 13-5, 0, 0
	anim_wait 1
	anim_sound 0, 0, SFX_SHINE
	anim_wait 2
	anim_call .inc

	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_18, 9+4, 0, 14-5, 0, 0

	anim_obj ANIM_OBJ_MOONLIGHT, 0+6, 0, 5-7, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2+6, 0, 7-7, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4+6, 0, 9-7, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6+6, 0, 11-7, 4, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8+6, 0, 13-7, 4, 0
	anim_wait 1
	anim_sound 0, 0, SFX_SHINE
	anim_wait 2
	anim_call .inc

	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_18, 9+6, 0, 14-7, 4, 0
	anim_wait 1

	anim_obj ANIM_OBJ_MOONLIGHT, 0+8, 0, 5-10, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2+8, 0, 7-10, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4+8, 0, 9-10, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6+8, 0, 11-10, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8+8, 0, 13-10, 0, 0
	anim_wait 1
	anim_sound 0, 0, SFX_SHINE
	anim_wait 2
	anim_call .inc

	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_18, 17, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_wait 32
	anim_ret

.inc:
	anim_clearobjs
	anim_ret

BattleAnim_EnergyBall:
	anim_2gfx ANIM_GFX_CHARGE, ANIM_GFX_EGG

	anim_sound 0, 0, SFX_GIGA_DRAIN
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 0
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 8
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 16
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 24
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 32
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 40
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 48
	anim_obj ANIM_OBJ_3C, 6, 0, 10, 4, 56
	anim_wait 8
	anim_obj ANIM_OBJ_3D, 6, 0, 10, 4, 0
	anim_wait 64

	anim_bgeffect ANIM_BG_1F, $60, 2, 0
.loop
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_ENERGY_BALL, 7, 6, 11, 4, 2
	anim_wait 3
	anim_obj ANIM_OBJ_ENERGY_BALL, 8, 2, 11, 4, 2
	anim_wait 3
	anim_loop 8, .loop
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_ShockSmog:
	anim_1gfx ANIM_GFX_HAZE
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_obp0 1, 0, 0, 0
	anim_wait 24
	anim_bgp 2, 1, 0, 0
	anim_wait 8
	anim_bgp 1, 0, 0, 0
	anim_wait 8
	anim_bgp 0, 0, 0, 0
	anim_wait 8
	anim_sound 0, 0, SFX_RAGE
.loop
	anim_obj ANIM_OBJ_SMOKE, 16, 4, 7, 4, $20
	anim_wait 8
	anim_loop 10, .loop
	anim_bgp 1, 0, 0, 0
	anim_wait 8
	anim_bgp 2, 1, 0, 0
	anim_wait 8
	anim_bgp 3, 2, 1, 0
	anim_wait 64
	anim_ret

BattleAnim_SignalBeam:
	anim_1gfx ANIM_GFX_EGG
	anim_obp0 2, 1, 1, 0
	anim_obp1 2, 1, 1, 0
	anim_bgeffect ANIM_BG_1F, $60, 2, 0
.loop
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_SIGNAL_BEAM, 7, 6, 11, 4, 2
	anim_wait 2
	anim_obj ANIM_OBJ_SIGNAL_BEAM, 8, 2, 11, 4, 2
	anim_wait 2
	anim_loop 24, .loop
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_NoisePulse:
	anim_1gfx ANIM_GFX_PSYCHIC
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_08, 0, 4, 0
.loop
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 10, 0, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 9, 4, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 9, 2, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 9, 4, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 10, 0, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 12, 0, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 12, 4, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 12, 6, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 12, 4, 4
	anim_wait 3
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 12, 0, 4
	anim_wait 3
	anim_loop 3, .loop
	anim_sound 0, 0, SFX_SCREECH
	anim_wait 48
	anim_ret

BattleAnim_Swift:
	anim_1gfx ANIM_GFX_OBJECTS
	anim_sound 6, 2, SFX_METRONOME
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 11, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 9, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_SWIFT, 8, 0, 9, 4, 4
	anim_wait 64
	anim_ret

BattleAnim_NightSlash:
	anim_1gfx ANIM_GFX_CUT
	anim_bgp 0, 1, 2, 3
	anim_obp0 0, 1, 2, 3
	anim_bgeffect ANIM_BG_1F, $60, 2, 0
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_obj ANIM_OBJ_3A, 18, 4, 4, 4, 0
	anim_wait 32
	anim_ret

BattleAnim_IronDefense:
	anim_1gfx ANIM_GFX_REFLECT
	anim_obp0 0
	anim_bgeffect ANIM_BG_17, 0, 1, $40
	anim_wait 2
.loop
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_HARDEN, 6, 0, 10, 4, 0
	anim_wait 24
	anim_loop 2, .loop
	anim_incbgeffect ANIM_BG_17
	anim_ret

BattleAnim_Peck:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, 16, 0, 6, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_DrillPeck:
	anim_1gfx ANIM_GFX_HIT
.loop
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, 15, 4, 7, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, -16, 4, 6, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, 17, 4, 7, 0, 0
	anim_wait 4
	anim_sound 0, 1, SFX_PECK
	anim_obj ANIM_OBJ_02, -16, 4, 8, 0, 0
	anim_wait 4
	anim_loop 5, .loop
	anim_wait 16
	anim_ret

BattleAnim_DrainingKiss:
	anim_3gfx ANIM_GFX_OBJECTS, ANIM_GFX_ANGELS, ANIM_GFX_BUBBLE
	anim_bgeffect ANIM_BG_07, 0, 2, 0
	anim_obj ANIM_OBJ_SWEET_KISS, 12, 0, 5, 0, 0
	anim_sound 0, 1, SFX_SWEET_KISS
	anim_wait 32
	anim_sound 0, 1, SFX_SWEET_KISS_2
	anim_obj ANIM_OBJ_HEART, 15, 0, 5, 0, 0
	anim_wait 40
	anim_sound 6, 3, SFX_WATER_GUN
	anim_call BattleAnim_LeechLife_branch_cbab3
	anim_wait 128
	anim_wait 48
	anim_ret

BattleAnim_Flash:
	anim_1gfx ANIM_GFX_SPEED
	anim_sound 0, 1, SFX_FLASH
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, $20
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, 0
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, 8
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $10
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $18
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $20
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $28
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $30
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 17, 0, 7, 0, $38
	anim_wait 32
	anim_ret

BattleAnim_Substitute:
	anim_sound 0, 0, SFX_SURF
	anim_jumpif 3, BattleAnim_Substitute_branch_ca77c
	anim_jumpif 2, BattleAnim_Substitute_branch_ca76e
	anim_jumpif 1, BattleAnim_Substitute_branch_ca760
	anim_1gfx ANIM_GFX_SMOKE
	anim_bgeffect ANIM_BG_27, 0, 1, 0
	anim_wait 48
	anim_raisesub
	anim_obj ANIM_OBJ_BALL_POOF, 6, 0, 12, 0, 0
	anim_bgeffect ANIM_BG_ENTER_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_Substitute_branch_ca760:
	anim_bgeffect ANIM_BG_27, 0, 1, 0
	anim_wait 48
	anim_dropsub
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_Substitute_branch_ca76e:
	anim_bgeffect ANIM_BG_27, 0, 1, 0
	anim_wait 48
	anim_raisesub
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_Substitute_branch_ca77c:
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_wait 48
	anim_dropsub
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 32
	anim_ret

BattleAnim_Minimize:
	anim_sound 0, 0, SFX_SURF
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_minimize
	anim_bgeffect ANIM_BG_WAVE_DEFORM_USER, 0, 1, 0
	anim_wait 48
	anim_updateactorpic
	anim_incbgeffect ANIM_BG_WAVE_DEFORM_USER
	anim_wait 48
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_SkyAttack:
	anim_jumpif 1, BattleAnim_FocusEnergy
BattleAnim_BraveBird:
	anim_1gfx ANIM_GFX_SKY_ATTACK
	anim_sound 0, 0, SFX_AEROBLAST
	anim_bgeffect ANIM_BG_27, 0, 1, 0
	anim_wait 24
	anim_sound 0, 0, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_SKY_ATTACK, 6, 0, 11, 0, $40
	anim_wait 8
	anim_incobj 1
	anim_wait 21
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_incobj 1
	anim_wait 32
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 16
	anim_ret

BattleAnim_NightShade:
	anim_1gfx ANIM_GFX_HIT
	anim_bgp $1b
	anim_obp1 $1b
	anim_wait 32
	anim_call BattleAnim_FollowPlayerHead_1
	anim_bgeffect ANIM_BG_NIGHT_SHADE, 0, 0, 8
	anim_sound 0, 1, SFX_PSYCHIC
	anim_wait 96
	anim_incbgeffect ANIM_BG_NIGHT_SHADE
	anim_call BattleAnim_ShowMon_1
	anim_ret

BattleAnim_Lick:
	anim_1gfx ANIM_GFX_WATER
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_LICK, 17, 0, 7, 0, 0
	anim_wait 64
	anim_ret

BattleAnim_TriAttack:
	anim_3gfx ANIM_GFX_FIRE, ANIM_GFX_ICE, ANIM_GFX_LIGHTNING
	anim_call BattleAnim_TriAttack_branch_cbbcc
	anim_wait 16
	anim_call BattleAnim_TriAttack_branch_cbbdf
	anim_wait 16
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 4
	anim_sound 0, 1, SFX_THUNDER
	anim_obj ANIM_OBJ_2F, 19, 0, 8, 4, 0
	anim_wait 16
	anim_ret

BattleAnim_Psybeam:
	anim_1gfx ANIM_GFX_PSYCHIC
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_08, 0, 4, 0
.loop
	anim_sound 6, 2, SFX_PSYBEAM
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 4
	anim_wait 4
	anim_loop 10, .loop
	anim_wait 48
	anim_ret

BattleAnim_DreamEater:
	anim_1gfx ANIM_GFX_BUBBLE
	anim_bgp $1b
	anim_obp0 $27
	anim_sound 6, 3, SFX_WATER_GUN
	anim_call BattleAnim_DreamEater_branch_cbab3
	anim_wait 128
	anim_wait 48
	anim_ret

BattleAnim_LeechLife:
	anim_1gfx ANIM_GFX_BUBBLE
	anim_sound 6, 3, SFX_WATER_GUN
	anim_call BattleAnim_LeechLife_branch_cbab3
	anim_wait 128
	anim_wait 48
	anim_ret

BattleAnim_Harden:
	anim_1gfx ANIM_GFX_REFLECT
	anim_obp0 0
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_call BattleAnim_SteelShine
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_BurningMist:
	anim_1gfx ANIM_GFX_HAZE
.loop
	anim_sound 16, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_GAS_YELLOW, 5, 4, 10, 0, 2
	anim_wait 8
	anim_sound 16, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_GAS_GREEN, 5, 4, 10, 0, 2
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 64
	anim_sound 0, 1, SFX_EMBER
	anim_wait 128
	anim_ret

BattleAnim_Growth:
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_1gfx ANIM_GFX_CHARGE
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, 0
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, 8
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $10
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $18
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $20
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $28
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $30
	anim_obj ANIM_OBJ_GROWTH, 6, 0, 13, 4, $38
	anim_wait 64
	anim_ret

BattleAnim_Conversion2:
	anim_1gfx ANIM_GFX_EXPLOSION
	anim_sound 63, 3, SFX_SHARPEN
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, 0
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, 8
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $10
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $18
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $20
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $28
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $30
	anim_obj ANIM_OBJ_CONVERSION2, -16, 4, 5, 4, $38
	anim_wait 128
	anim_wait 48
	anim_ret

BattleAnim_Smokescreen:
	anim_3gfx ANIM_GFX_HAZE, ANIM_GFX_EGG, ANIM_GFX_SMOKE
	anim_sound 6, 2, SFX_THROW_BALL
	anim_obj ANIM_OBJ_SMOKESCREEN, 8, 0, 11, 4, $6c
	anim_wait 24
	anim_incobj 1
	anim_sound 0, 1, SFX_BALL_POOF
	anim_obj ANIM_OBJ_BALL_POOF, 13, 4, 8, 6, $10
	anim_wait 8
.loop
	anim_sound 0, 1, SFX_MENU
	anim_obj ANIM_OBJ_SMOKE, -16, 4, 7, 4, $20
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 128
	anim_ret

BattleAnim_PowerGem:
	anim_2gfx ANIM_GFX_ICE, ANIM_GFX_SPEED
.loop
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_GEM, 7, 4, 9, 4, 4
	anim_obj ANIM_OBJ_GEM, 7, 4, 11, 0, 4
	anim_obj ANIM_OBJ_GEM, 8, 4, 10, 0, 4
	anim_obj ANIM_OBJ_GEM, 8, 4, 11, 4, 4
	anim_wait 4
	anim_sound 6, 2, SFX_FLASH

	anim_obj ANIM_OBJ_AE, 8, 0, 9, 0, 4
	anim_wait 4
	anim_obj ANIM_OBJ_AE, 8, 0, 11, 0, 4
	anim_obj ANIM_OBJ_FLASH, 8, 0, 10, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_AE, 8, 0, 10, 0, 4
	anim_wait 2
	anim_obj ANIM_OBJ_FLASH, 10, 0, 7, 6, 0
	anim_wait 4
	anim_obj ANIM_OBJ_FLASH, 12, 0, 9, 4, 0
	anim_wait 2
	anim_obj ANIM_OBJ_AE, 8, 0, 12, 0, 4
	anim_wait 2
	anim_obj ANIM_OBJ_FLASH, 14, 0, 8, 0, 0
	anim_wait 2

	anim_loop 2, .loop
	anim_wait 6
	anim_ret

BattleAnim_EarthPower_Strength:
	anim_2gfx ANIM_GFX_ROCKS, ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_20, $10, 1, $20
	anim_sound 0, 0, SFX_STRENGTH
	anim_obj ANIM_OBJ_STRENGTH, 8, 0, 13, 0, 1
	anim_wait 128
	anim_incobj 1
	anim_wait 20
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, -16, 4, 5, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_SwordsDance:
	anim_1gfx ANIM_GFX_WHIP
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_SWORDS_DANCE, 6, 0, 13, 4, 0
	anim_obj ANIM_OBJ_SWORDS_DANCE, 6, 0, 13, 4, $d
	anim_obj ANIM_OBJ_SWORDS_DANCE, 6, 0, 13, 4, $1a
	anim_obj ANIM_OBJ_SWORDS_DANCE, 6, 0, 13, 4, $27
	anim_obj ANIM_OBJ_SWORDS_DANCE, 6, 0, 13, 4, $34
	anim_wait 56
	anim_ret

BattleAnim_QuickAttack:
	anim_2gfx ANIM_GFX_SPEED, ANIM_GFX_HIT
	anim_sound 0, 0, SFX_MENU
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 3, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SPEED_LINE, 4, 0, 11, 0, 1
	anim_obj ANIM_OBJ_SPEED_LINE, 5, 0, 11, 0, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 6, 0, 11, 0, $80
	anim_obj ANIM_OBJ_SPEED_LINE, 7, 0, 11, 0, $81
	anim_obj ANIM_OBJ_SPEED_LINE, 8, 0, 11, 0, $82
	anim_wait 12
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 16
	anim_ret

BattleAnim_DragonDance:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
.loop
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_sound 0, 0, SFX_OUTRAGE
	anim_bgeffect ANIM_BG_WAVE_DEFORM_USER, 0, 1, 0
	anim_wait 16
	anim_incbgeffect ANIM_BG_WAVE_DEFORM_USER
	anim_wait 16
	anim_loop 3, .loop
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_VoidSphere:
	anim_1gfx ANIM_GFX_MISC
	anim_bgp 0, 1, 2, 3
	anim_sound 0, 1, SFX_SPITE
	anim_wait 16
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, 3
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $12
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $20
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $31
	anim_wait 32
	anim_bgeffect ANIM_BG_1F, $20, 1, 0
	anim_wait 24
	anim_sound 0, 0, SFX_KINESIS
	anim_bgeffect ANIM_BG_RETURN_MON, 0, 0, 0
	anim_wait 64
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_ret

BattleAnim_DefenseCurl:
	anim_1gfx ANIM_GFX_SHAPES
	anim_obp0 $e4
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_sound 0, 0, SFX_SHARPEN
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_obj ANIM_OBJ_DEFENSE_CURL, 6, 0, 11, 0, 0
	anim_wait 96
	anim_incobj 2
	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_SeismicToss:
	anim_2gfx ANIM_GFX_GLOBE, ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_20, $10, 1, $20
	anim_sound 0, 0, SFX_STRENGTH
	anim_obj ANIM_OBJ_SEISMIC_TOSS, 8, 0, 13, 0, 1
	anim_wait 128
	anim_incobj 1
	anim_wait 20
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, -16, 4, 5, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Rage:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_sound 0, 0, SFX_RAGE
	anim_wait 72
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_sound 0, 1, SFX_MOVE_PUZZLE_PIECE
	anim_obj ANIM_OBJ_00, 15, 0, 9, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, 19, 0, 5, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Agility:
	anim_1gfx ANIM_GFX_WIND
	anim_obp0 $fc
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 3, 0, $10
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 6, 0, 2
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 11, 0, 8
	anim_wait 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 4, 0, 6
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 7, 0, $c
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 10, 0, 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 13, 0, $e
.loop
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_wait 4
	anim_loop 18, .loop
	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_ThunderFang:
	anim_3gfx ANIM_GFX_CUT, ANIM_GFX_HIT, ANIM_GFX_LIGHTNING

	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $98
	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $18
	anim_wait 8
	anim_sound 0, 1, SFX_BITE

	anim_obj ANIM_OBJ_01, 18, 0, 6, 0, $18
	anim_wait 4

	anim_obj ANIM_OBJ_2F, 16, 0, 8, 4, 0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 2
	anim_sound 0, 1, SFX_THUNDER
	anim_wait 12

	anim_sound 0, 1, SFX_BITE
	anim_obj ANIM_OBJ_01, 16, 0, 8, 0, $18
	anim_wait 8
	anim_clearobjs

	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 2
	anim_obj ANIM_OBJ_2F, 17, 0, 8, 4, 0
	anim_bgp 0, 1, 2, 3
	anim_sound 0, 1, SFX_THUNDER
	anim_wait 4
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 2
	anim_wait 32
	anim_ret

BattleAnim_Barrier:
	anim_1gfx ANIM_GFX_REFLECT
	anim_enemyfeetobj
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_wait 8
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_wait 32
	anim_sound 0, 0, SFX_SHINE
	anim_obj ANIM_OBJ_SCREEN, 9, 0, 10, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_Waterfall:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 16
	anim_call BattleAnim_ShowMon_0
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 3
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 3
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_01, 17, 0, 5, 0, 0
	anim_wait 3
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_01, 17, 0, 4, 0, 0
	anim_wait 3
	anim_sound 0, 1, SFX_LICK
	anim_obj ANIM_OBJ_01, 17, 0, 3, 0, 0
	anim_wait 8
	anim_ret

BattleAnim_Psychic:
	anim_1gfx ANIM_GFX_PSYCHIC
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_bgeffect ANIM_BG_PSYCHIC, 0, 0, 0
.loop
	anim_sound 6, 2, SFX_PSYCHIC
	anim_obj ANIM_OBJ_WAVE, 8, 0, 11, 0, 2
	anim_wait 8
	anim_loop 8, .loop
	anim_wait 96
	anim_incbgeffect ANIM_BG_PSYCHIC
	anim_wait 4
	anim_ret

BattleAnim_Sludge:
	anim_1gfx ANIM_GFX_POISON
	anim_call BattleAnim_Sludge_branch_cbc15
	anim_wait 56
	anim_ret

BattleAnim_Toxic_SteelEater:
	anim_1gfx ANIM_GFX_POISON
	anim_bgeffect ANIM_BG_BLACK_HUES, 0, 8, 0
	anim_call BattleAnim_Toxic_branch_cbc35
	anim_wait 32
	anim_call BattleAnim_Toxic_branch_cbc15
	anim_wait 64
	anim_ret

BattleAnim_Metronome:
	anim_2gfx ANIM_GFX_MISC, ANIM_GFX_SPEED
	anim_sound 0, 0, SFX_METRONOME
	anim_obj ANIM_OBJ_7A, 9, 0, 11, 0, 0
.loop
	anim_obj ANIM_OBJ_7B, 9, 0, 10, 0, 0
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 48
	anim_ret

BattleAnim_Counter:
	anim_1gfx ANIM_GFX_HIT
.loop
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, 2
	anim_sound 0, 1, SFX_POUND
	anim_obj ANIM_OBJ_08, 15, 0, 9, 0, 0
	anim_obj ANIM_OBJ_00, 15, 0, 9, 0, 0
	anim_wait 6
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, 2
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 5, 0, 0
	anim_obj ANIM_OBJ_00, 17, 0, 5, 0, 0
	anim_wait 6
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, 2
	anim_sound 0, 1, SFX_MEGA_KICK
	anim_obj ANIM_OBJ_07, 19, 0, 7, 0, 0
	anim_obj ANIM_OBJ_00, 19, 0, 7, 0, 0
	anim_wait 6
	anim_loop 3, .loop
	anim_wait 16
	anim_ret

BattleAnim_WingAttack:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 18, 4, 7, 0, 0
	anim_obj ANIM_OBJ_01, 14, 4, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 18, 0, 7, 0, 0
	anim_obj ANIM_OBJ_01, 15, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 17, 4, 7, 0, 0
	anim_obj ANIM_OBJ_01, 15, 4, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Disable:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_STATUS
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_obj ANIM_OBJ_DISABLE, -16, 4, 7, 0, 0
	anim_wait 16
	anim_sound 0, 1, SFX_BIND
	anim_obj ANIM_OBJ_PARALYZED, 13, 0, 7, 0, $42
	anim_obj ANIM_OBJ_PARALYZED, 20, 0, 7, 0, $c2
	anim_wait 96
	anim_ret

BattleAnim_TailWhip:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_sound 0, 0, SFX_TAIL_WHIP
	anim_bgeffect ANIM_BG_26, 0, 1, 0
	anim_wait 32
	anim_incbgeffect ANIM_BG_26
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Struggle:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 1, SFX_POUND
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Thief:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 16
	anim_sound 0, 1, SFX_THIEF
	anim_obj ANIM_OBJ_01, 16, 0, 6, 0, 0
	anim_wait 16
	anim_call BattleAnim_ShowMon_0
	anim_wait 1
	anim_1gfx ANIM_GFX_STATUS
	anim_sound 0, 1, SFX_THIEF_2
	anim_obj ANIM_OBJ_THIEF, 15, 0, 9, 4, 1
	anim_wait 64
	anim_ret

BattleAnim_FlashCannon:
	anim_1gfx ANIM_GFX_EGG
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_bgeffect ANIM_BG_1F, $60, 2, 0
.loop
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_OCTAZOOKA, 8, 0, 11, 4, 4
	anim_wait 4
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_OCTAZOOKA, 8, 0, 11, 4, 4
	anim_wait 4
	anim_loop 10, .loop
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_1
	anim_ret

BattleAnim_MindReader:
	anim_1gfx ANIM_GFX_MISC
	anim_sound 0, 1, SFX_MIND_READER
.loop
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, 3
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $12
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $20
	anim_obj ANIM_OBJ_MIND_READER, -16, 4, 6, 0, $31
	anim_wait 16
	anim_loop 2, .loop
	anim_wait 32
	anim_ret

BattleAnim_FlameWheel:
	anim_1gfx ANIM_GFX_FIRE
.loop
	anim_sound 0, 0, SFX_EMBER
	anim_obj ANIM_OBJ_FLAME_WHEEL, 6, 0, 12, 0, 0
	anim_wait 6
	anim_loop 8, .loop
	anim_wait 96
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_sound 0, 1, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 1
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 4
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 5
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 4
	anim_incobj 9
	anim_wait 8
	anim_ret

BattleAnim_Curse:
	anim_jumpif 1, .NotGhost
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_OBJECTS
	anim_obj ANIM_OBJ_CURSE, 8, 4, 9, 0, 0
	anim_sound 0, 0, SFX_CURSE
	anim_wait 32
	anim_incobj 1
	anim_wait 12
	anim_sound 0, 0, SFX_POISON_STING
	anim_obj ANIM_OBJ_04, 5, 4, 12, 0, 0
	anim_wait 16
	anim_ret

.NotGhost
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_19, 0, 1, $40
	anim_sound 0, 0, SFX_SHARPEN
	anim_wait 64
	anim_incbgeffect ANIM_BG_19
	anim_wait 1
	anim_bgeffect ANIM_BG_16, 0, 1, $40
.loop
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_47, 5, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 4, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 6, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 3, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 7, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 2, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 8, 4, 13, 4, 8
	anim_wait 2
	anim_loop 3, .loop
	anim_wait 8
	anim_incbgeffect ANIM_BG_16
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Flail:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_sound 0, 0, SFX_SUBMISSION
	anim_bgeffect ANIM_BG_2C, 0, 1, 0
	anim_wait 8
	anim_obj ANIM_OBJ_01, 15, 0, 6, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_01, 19, 0, 6, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 8
	anim_incbgeffect ANIM_BG_2C
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Conversion:
	anim_1gfx ANIM_GFX_EXPLOSION
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_sound 63, 3, SFX_SHARPEN
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, 0
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, 8
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $10
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $18
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $20
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $28
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $30
	anim_obj ANIM_OBJ_CONVERSION, 6, 0, 11, 0, $38
	anim_wait 128
	anim_ret

BattleAnim_Aeroblast:
	anim_2gfx ANIM_GFX_BEAM, ANIM_GFX_AEROBLAST
	anim_bgp $1b
	anim_bgeffect ANIM_BG_1F, $50, 4, $10
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_AEROBLAST, 9, 0, 11, 0, 0
	anim_wait 32
	anim_sound 0, 0, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 10, 0, 10, 4, 0
	anim_wait 2
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 12, 0, 9, 4, 0
	anim_wait 2
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 14, 0, 8, 4, 0
	anim_obj ANIM_OBJ_28, 15, 6, 7, 6, 0
	anim_wait 48
	anim_ret

BattleAnim_CottonSpore:
	anim_obp0 $54
	anim_1gfx ANIM_GFX_MISC
	anim_sound 0, 1, SFX_POWDER
.loop
	anim_obj ANIM_OBJ_COTTON_SPORE, -16, 4, 4, 0, 0
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 96
	anim_ret

BattleAnim_Reversal:
	anim_2gfx ANIM_GFX_SHINE, ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_07, 0, 0, 0
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_04, 14, 0, 8, 0, 0
	anim_wait 2
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_FORESIGHT, 15, 0, 7, 0, 0
	anim_wait 2
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_04, 16, 0, 7, 0, 0
	anim_wait 2
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_FORESIGHT, 17, 0, 6, 0, 0
	anim_wait 2
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_04, 18, 0, 6, 0, 0
	anim_wait 2
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_FORESIGHT, 19, 0, 5, 0, 0
	anim_wait 24
	anim_ret

BattleAnim_Spite:
	anim_1gfx ANIM_GFX_ANGELS
	anim_obj ANIM_OBJ_SPITE, -16, 4, 2, 0, 0
	anim_sound 0, 1, SFX_SPITE
	anim_wait 96
	anim_ret

BattleAnim_PowderSnow:
	anim_1gfx ANIM_GFX_ICE

.loop
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 11, 0, $23
	anim_wait 2
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 10, 0, $24
	anim_wait 2
	anim_sound 6, 2, SFX_SHINE
	anim_obj ANIM_OBJ_POWDER_SNOW, 8, 0, 12, 0, $23
	anim_wait 2
	anim_loop 2, .loop

	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_wait 40
	anim_call BattleAnim_PowderSnow_branch_cbbdf
	anim_wait 32
	anim_ret

BattleAnim_Protect:
	anim_1gfx ANIM_GFX_OBJECTS
	anim_bgeffect ANIM_BG_07, 0, 2, 0
	anim_obj ANIM_OBJ_PROTECT, 10, 0, 10, 0, 0
	anim_obj ANIM_OBJ_PROTECT, 10, 0, 10, 0, $d
	anim_obj ANIM_OBJ_PROTECT, 10, 0, 10, 0, $1a
	anim_obj ANIM_OBJ_PROTECT, 10, 0, 10, 0, $27
	anim_obj ANIM_OBJ_PROTECT, 10, 0, 10, 0, $34
	anim_sound 0, 0, SFX_PROTECT
	anim_wait 96
	anim_ret

BattleAnim_MachPunch:
	anim_2gfx ANIM_GFX_SPEED, ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_SPEED_LINE, 3, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SPEED_LINE, 4, 0, 11, 0, 1
	anim_obj ANIM_OBJ_SPEED_LINE, 5, 0, 11, 0, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 6, 0, 11, 0, $80
	anim_obj ANIM_OBJ_SPEED_LINE, 7, 0, 11, 0, $81
	anim_obj ANIM_OBJ_SPEED_LINE, 8, 0, 11, 0, $82
	anim_wait 12
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 16
	anim_ret

BattleAnim_ScaryFace:
	anim_1gfx ANIM_GFX_BEAM
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_call BattleAnim_ScaryFace_branch_cbadc
	anim_wait 64
	anim_ret

BattleAnim_FeintAttack:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 0, SFX_CURSE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1D, 0, 1, $80
	anim_wait 96
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_04, 15, 0, 4, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_04, 19, 0, 5, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_04, 17, 0, 6, 0, 0
	anim_wait 32
	anim_incbgeffect ANIM_BG_1D
	anim_call BattleAnim_ShowMon_0
	anim_wait 4
	anim_ret

BattleAnim_SweetKiss:
	anim_2gfx ANIM_GFX_OBJECTS, ANIM_GFX_ANGELS
	anim_bgeffect ANIM_BG_07, 0, 2, 0
	anim_obj ANIM_OBJ_SWEET_KISS, 12, 0, 5, 0, 0
	anim_sound 0, 1, SFX_SWEET_KISS
	anim_wait 32
	anim_sound 0, 1, SFX_SWEET_KISS_2
	anim_obj ANIM_OBJ_HEART, 15, 0, 5, 0, 0
	anim_wait 40
	anim_ret

BattleAnim_BellyDrum:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_NOISE
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 24
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 24
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 24
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_sound 0, 0, SFX_SWEET_KISS
	anim_obj ANIM_OBJ_AA, 8, 0, 13, 0, 0
	anim_obj ANIM_OBJ_AB, 8, 0, 11, 4, $f8
	anim_wait 12
	anim_ret

BattleAnim_SludgeBomb:
	anim_2gfx ANIM_GFX_EGG, ANIM_GFX_POISON
	anim_bgeffect ANIM_BG_BLACK_HUES, 0, 8, 0
	anim_sound 6, 2, SFX_SLUDGE_BOMB
	anim_obj ANIM_OBJ_SLUDGE_BOMB, 8, 0, 11, 4, $10
	anim_wait 36
	anim_call BattleAnim_SludgeBomb_branch_cbc15
	anim_wait 64
	anim_ret

BattleAnim_MudSlap:
	anim_1gfx ANIM_GFX_SAND
	anim_obp0 $fc
	anim_call BattleAnim_MudSlap_branch_cbc5b
	anim_ret

BattleAnim_PlayRough:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_BOUNCE_DOWN, 0, 1, 0
.loop
	anim_sound 0, 1, SFX_LICK
	anim_wait 12
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_06, 17, 0, 5, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 5, 0, 0
	anim_wait 10
	anim_loop 3, .loop

	anim_incbgeffect ANIM_BG_BOUNCE_DOWN
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Spikes:
	anim_1gfx ANIM_GFX_MISC
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_SPIKES, 6, 0, 11, 0, $20
	anim_wait 8
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_SPIKES, 6, 0, 11, 0, $30
	anim_wait 8
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_SPIKES, 6, 0, 11, 0, $28
	anim_wait 64
	anim_ret

BattleAnim_ZapCannon:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_EXPLOSION
	anim_bgp $1b
	anim_obp0 $30
	anim_sound 6, 2, SFX_ZAP_CANNON
	anim_obj ANIM_OBJ_ZAP_CANNON, 8, 0, 11, 4, 2
	anim_wait 40
	anim_sound 0, 1, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_LIGHTNING_BOLT, 17, 0, 7, 0, 2
	anim_wait 16
	anim_obj ANIM_OBJ_31, 17, 0, 7, 0, 0
	anim_wait 128
	anim_ret

BattleAnim_Foresight:
	anim_1gfx ANIM_GFX_SHINE
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_07, 0, 0, 0
	anim_sound 0, 1, SFX_FORESIGHT
	anim_obj ANIM_OBJ_FORESIGHT, -16, 4, 5, 0, 0
	anim_wait 24
	anim_bgeffect ANIM_BG_19, 0, 0, $40
	anim_wait 64
	anim_incbgeffect ANIM_BG_19
	anim_call BattleAnim_ShowMon_1
	anim_wait 8
	anim_ret

BattleAnim_DestinyBond:
	anim_1gfx ANIM_GFX_ANGELS
	anim_bgp $1b
	anim_obp0 0
	anim_jumpif 1, BattleAnim_DestinyBond_branch_cb104
	anim_sound 6, 2, SFX_WHIRLWIND
	anim_obj ANIM_OBJ_DESTINY_BOND, 5, 4, 15, 0, 2
	anim_wait 128
	anim_ret

BattleAnim_DestinyBond_branch_cb104:
	anim_obj ANIM_OBJ_DESTINY_BOND, -16, 4, 9, 4, 0
	anim_sound 0, 1, SFX_KINESIS
	anim_bgeffect ANIM_BG_RETURN_MON, 0, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_PerishSong:
	anim_1gfx ANIM_GFX_NOISE
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_sound 0, 2, SFX_PERISH_SONG
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, 0
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, 8
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $10
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $18
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $20
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $28
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $30
	anim_obj ANIM_OBJ_PERISH_SONG, 11, 0, 0, 0, $38
	anim_wait 112
	anim_ret

BattleAnim_IcyWind:
	anim_1gfx ANIM_GFX_SPEED
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_playerheadobj
	anim_sound 0, 0, SFX_PSYCHIC
.loop
	anim_wait 8
	anim_obj ANIM_OBJ_AE, 8, 0, 11, 0, 4
	anim_wait 8
	anim_obj ANIM_OBJ_AE, 8, 0, 10, 0, 4
	anim_wait 8
	anim_obj ANIM_OBJ_AE, 8, 0, 12, 0, 4
	anim_wait 8
	anim_loop 2, .loop
	anim_wait 16
	anim_bgeffect ANIM_BG_HEAD_FOLLOW, 0, 1, 0
	anim_wait 6
	anim_bgeffect ANIM_BG_NIGHT_SHADE, 0, 0, 8
	anim_wait 64
	anim_incbgeffect ANIM_BG_NIGHT_SHADE
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 4
	anim_incobj 7
	anim_wait 1
	anim_ret

BattleAnim_SeedBomb:
	anim_2gfx ANIM_GFX_PLANT, ANIM_GFX_EXPLOSION
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $20
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $28
	anim_wait 2
	anim_sound 16, 2, SFX_VINE_WHIP
	anim_obj ANIM_OBJ_LEECH_SEED, 6, 0, 10, 0, $30
	anim_wait 28
	anim_bgeffect ANIM_BG_1F, $60, 4, $10
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $24
	anim_clearobjs
	anim_call BattleAnim_Explosion_branch_cbb8f
	anim_wait 16
	anim_ret

BattleAnim_WillOWisp:
	anim_1gfx ANIM_GFX_FIRE
	anim_bgp 0, 1, 2, 3
	anim_sound 0, 1, SFX_SPITE
	anim_obj ANIM_OBJ_DRAGON_RAGE, 8, 0, 11, 4, 0
	anim_wait 48
.loop
	anim_sound 0, 0, SFX_SPARK
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 0, $a0
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 0, $20
	anim_wait 8
	anim_loop 4, .loop
	anim_wait 16
	anim_sound 0, 0, SFX_BURN
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 1
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 2
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 3
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 4
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 5
	anim_wait 32
	anim_ret

BattleAnim_DarkPulse:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_EGG

	anim_sound 0, 0, SFX_RAGE
	anim_bgp 0, 1, 2, 3
	anim_wait 32
	anim_bgeffect ANIM_BG_1F, $60, 2, 0
.loop
	anim_sound 0, 0, SFX_AEROBLAST
	anim_obj ANIM_OBJ_SHADOW_BALL, 7, 6, 11, 4, 2
	anim_wait 3
	anim_obj ANIM_OBJ_SHADOW_BALL, 8, 2, 11, 4, 2
	anim_wait 3
	anim_loop 8, .loop
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_bgeffect ANIM_BG_VIBRATE_MON, 0, 0, 0
	anim_wait 32
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret
	anim_ret

BattleAnim_Outrage:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_sound 0, 0, SFX_OUTRAGE
	anim_wait 72
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_sound 0, 1, SFX_MOVE_PUZZLE_PIECE
	anim_obj ANIM_OBJ_00, 15, 0, 9, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, 19, 0, 5, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Sandstorm:
	anim_call BattleAnim_SetUpSandstorm
.loop
	anim_sound 0, 1, SFX_MENU
	anim_wait 8
	anim_loop 16, .loop
	anim_wait 8
	anim_ret

BattleAnim_InSandstorm:
	anim_call BattleAnim_SetUpSandstorm
.loop
	anim_sound 0, 1, SFX_MENU
	anim_wait 8
	anim_loop 6, .loop
	anim_wait 8
	anim_ret

BattleAnim_SetUpSandstorm:
	anim_1gfx ANIM_GFX_POWDER
	anim_obj ANIM_OBJ_SANDSTORM, 11, 0, 0, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_SANDSTORM, 9, 0, 0, 0, 1
	anim_wait 8
	anim_obj ANIM_OBJ_SANDSTORM, 7, 0, 0, 0, 2
	anim_ret

BattleAnim_Hail:
	anim_1gfx ANIM_GFX_POWDER
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_obj ANIM_OBJ_HAIL, 11, 0, 0, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_HAIL, 9, 0, 0, 0, 1
	anim_wait 8
	anim_obj ANIM_OBJ_HAIL, 7, 0, 0, 0, 2
.loop
	anim_sound 0, 1, SFX_SHINE
	anim_wait 6
	anim_sound 0, 0, SFX_SHINE
	anim_wait 6
	anim_loop 8, .loop
	anim_wait 8
	anim_ret

BattleAnim_GigaDrain:
	anim_2gfx ANIM_GFX_BUBBLE, ANIM_GFX_CHARGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1C, 0, 0, $10
	anim_sound 6, 3, SFX_GIGA_DRAIN
	anim_call BattleAnim_GigaDrain_branch_cbab3
	anim_wait 48
	anim_wait 128
	anim_incbgeffect ANIM_BG_1C
	anim_call BattleAnim_ShowMon_0
	anim_wait 1
	anim_1gfx ANIM_GFX_SHINE
	anim_bgeffect ANIM_BG_07, 0, 0, 0
.loop
	anim_sound 0, 0, SFX_METRONOME
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 5, 0, 10, 4, 0
	anim_wait 5
	anim_loop 2, .loop
	anim_wait 32
	anim_ret

BattleAnim_Endure:
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_bgeffect ANIM_BG_07, 0, 2, 0
.loop
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_obj ANIM_OBJ_47, 5, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 4, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 6, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 3, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 7, 4, 13, 4, 6
	anim_wait 2
	anim_obj ANIM_OBJ_47, 2, 4, 13, 4, 8
	anim_wait 2
	anim_obj ANIM_OBJ_47, 8, 4, 13, 4, 8
	anim_wait 2
	anim_loop 5, .loop
	anim_wait 8
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Charm:
	anim_1gfx ANIM_GFX_OBJECTS
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_26, 0, 1, 0
	anim_sound 0, 0, SFX_ATTRACT
	anim_obj ANIM_OBJ_HEART, 8, 0, 10, 0, 0
	anim_wait 32
	anim_incbgeffect ANIM_BG_26
	anim_call BattleAnim_ShowMon_0
	anim_wait 4
	anim_ret

BattleAnim_Rollout:
	anim_1gfx ANIM_GFX_HIT
	anim_sound 0, 0, SFX_SPARK
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_2E, $60, 1, 1
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_03, 17, 0, 5, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Vaporize:
	; Ideally, the opponent pic would shatter into a million pieces.
	anim_bgeffect ANIM_BG_30, 0, 0, 0
	anim_sound 0, 0, SFX_RAGE
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_wait 16
.loop
	anim_sound 0, 0, SFX_OUTRAGE
	anim_bgeffect ANIM_BG_31, $80, 0, 0
	anim_wait 2
	anim_bgeffect ANIM_BG_31, $60, 0, 0
	anim_wait 2
	anim_bgeffect ANIM_BG_31, $40, 0, 0
	anim_wait 2
	anim_bgeffect ANIM_BG_31, $20, 0, 0
	anim_wait 2
	anim_loop 6, .loop
	anim_bgeffect ANIM_BG_32, 0, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_Swagger:
	anim_2gfx ANIM_GFX_MISC, ANIM_GFX_WIND
.loop
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_SWAGGER, 9, 0, 11, 0, $44
	anim_wait 32
	anim_loop 2, .loop
	anim_wait 32
	anim_sound 0, 1, SFX_KINESIS_2
	anim_obj ANIM_OBJ_ANGER, 13, 0, 5, 0, 0
	anim_wait 40
	anim_ret

BattleAnim_CalmMind:
	anim_1gfx ANIM_GFX_SPEED
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TELEPORT, 0, 1, 0
	anim_wait 32
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_wait 3
	anim_incbgeffect ANIM_BG_TELEPORT
	anim_call BattleAnim_ShowMon_0
	anim_bgeffect ANIM_BG_06, 0, 1, 0
	anim_call BattleAnim_Teleport_branch_cbb12
	anim_wait 128
	anim_call BattleAnim_Teleport_branch_cbb12
	anim_sound 0, 0, SFX_WARP_FROM
	anim_wait 24
	anim_sound 0, 0, SFX_KINESIS
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_ret

BattleAnim_Spark_WildCharge:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_EXPLOSION
	anim_sound 0, 0, SFX_ZAP_CANNON
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, 3
	anim_obj ANIM_OBJ_THUNDER_WAVE, 6, 0, 11, 4, 0
	anim_wait 24
	anim_setobj 1, 3
	anim_wait 1
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_sound 0, 0, SFX_SPARK
	anim_wait 16
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 4
	anim_incobj 2
	anim_wait 1
	anim_sound 0, 1, SFX_THUNDERSHOCK
	anim_obj ANIM_OBJ_LIGHTNING_BOLT, 17, 0, 7, 0, 2
	anim_obj ANIM_OBJ_33, 17, 0, 7, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_FuryCutter:
	anim_1gfx ANIM_GFX_CUT
.loop
	anim_sound 0, 1, SFX_CUT
	anim_jumpand 1, .obj1
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_jump .okay

.obj1
	anim_obj ANIM_OBJ_3B, 14, 0, 5, 0, 0
.okay
	anim_wait 16
	anim_jumpuntil .loop
	anim_ret

BattleAnim_SteelWing:
	anim_1gfx ANIM_GFX_REFLECT
	anim_obp0 0
	anim_sound 0, 0, SFX_RAGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_call BattleAnim_SteelShine
	anim_call BattleAnim_ShowMon_0
	anim_1gfx ANIM_GFX_HIT
	anim_resetobp0
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 18, 4, 7, 0, 0
	anim_obj ANIM_OBJ_01, 14, 4, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 18, 0, 7, 0, 0
	anim_obj ANIM_OBJ_01, 15, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_WING_ATTACK
	anim_obj ANIM_OBJ_01, 17, 4, 7, 0, 0
	anim_obj ANIM_OBJ_01, 15, 4, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_MeanLook:
	anim_1gfx ANIM_GFX_PSYCHIC
	anim_obp0 $e0
	anim_sound 0, 1, SFX_MEAN_LOOK
	anim_obj ANIM_OBJ_MEAN_LOOK, 18, 4, 4, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 14, 4, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 18, 4, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, 14, 4, 4, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_MEAN_LOOK, -16, 4, 6, 0, 0
	anim_wait 128
	anim_ret

BattleAnim_Attract:
	anim_1gfx ANIM_GFX_OBJECTS
.loop
	anim_sound 0, 0, SFX_ATTRACT
	anim_obj ANIM_OBJ_ATTRACT, 5, 4, 10, 0, 2
	anim_wait 8
	anim_loop 5, .loop
	anim_wait 128
	anim_wait 64
	anim_ret

BattleAnim_SleepTalk:
	anim_1gfx ANIM_GFX_STATUS
.loop
	anim_sound 0, 0, SFX_STRENGTH
	anim_obj ANIM_OBJ_ASLEEP, 8, 0, 10, 0, 0
	anim_wait 40
	anim_loop 2, .loop
	anim_wait 32
	anim_ret

BattleAnim_HealBell:
	anim_2gfx ANIM_GFX_MISC, ANIM_GFX_NOISE
	anim_obj ANIM_OBJ_84, 9, 0, 7, 0, 0
	anim_wait 32
.loop
	anim_sound 0, 0, SFX_HEAL_BELL
	anim_obj ANIM_OBJ_85, 9, 0, 6, 4, 0
	anim_wait 8
	anim_sound 0, 0, SFX_HEAL_BELL
	anim_obj ANIM_OBJ_85, 9, 0, 6, 4, 1
	anim_wait 8
	anim_sound 0, 0, SFX_HEAL_BELL
	anim_obj ANIM_OBJ_85, 9, 0, 6, 4, 2
	anim_wait 8
	anim_sound 0, 0, SFX_HEAL_BELL
	anim_obj ANIM_OBJ_85, 9, 0, 6, 4, 0
	anim_wait 8
	anim_sound 0, 0, SFX_HEAL_BELL
	anim_obj ANIM_OBJ_85, 9, 0, 6, 4, 2
	anim_wait 8
	anim_loop 4, .loop
	anim_wait 64
	anim_ret

BattleAnim_Return:
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_BOUNCE_DOWN, 0, 1, 0
	anim_sound 0, 0, SFX_RETURN
	anim_wait 64
	anim_incbgeffect ANIM_BG_BOUNCE_DOWN
	anim_wait 32
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_03, 17, 0, 5, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Frustration:
	anim_1gfx ANIM_GFX_MISC
	anim_sound 0, 0, SFX_KINESIS_2
	anim_obj ANIM_OBJ_ANGER, 9, 0, 10, 0, 0
	anim_wait 40
	anim_1gfx ANIM_GFX_HIT
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_26, 0, 1, 0
	anim_wait 8
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_01, 15, 0, 6, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_01, 19, 0, 6, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_01, 17, 0, 6, 0, 0
	anim_wait 8
	anim_incbgeffect ANIM_BG_26
	anim_wait 1
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_Safeguard:
	anim_1gfx ANIM_GFX_MISC
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_obj ANIM_OBJ_SAFEGUARD, 10, 0, 10, 0, 0
	anim_obj ANIM_OBJ_SAFEGUARD, 10, 0, 10, 0, $d
	anim_obj ANIM_OBJ_SAFEGUARD, 10, 0, 10, 0, $1a
	anim_obj ANIM_OBJ_SAFEGUARD, 10, 0, 10, 0, $27
	anim_obj ANIM_OBJ_SAFEGUARD, 10, 0, 10, 0, $34
	anim_sound 0, 0, SFX_PROTECT
	anim_wait 96
	anim_ret

BattleAnim_PainSplit:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_OBJECTS
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_04, 14, 0, 6, 0, 0
	anim_obj ANIM_OBJ_04, 9, 4, 12, 0, 0
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_wait 1
	anim_ret

BattleAnim_FlareBlitz_SacredFire:
	anim_1gfx ANIM_GFX_FIRE
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
.loop
	anim_sound 0, 0, SFX_EMBER
	anim_obj ANIM_OBJ_SACRED_FIRE, 6, 0, 13, 0, 0
	anim_wait 8
	anim_loop 8, .loop
	anim_wait 96
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 4
	anim_sound 0, 1, SFX_EMBER
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 1
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 4
	anim_obj ANIM_OBJ_FIRE_BLAST, 17, 0, 6, 0, 5
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 4
	anim_incobj 9
	anim_wait 8
	anim_ret

BattleAnim_Magnitude:
	anim_1gfx ANIM_GFX_ROCKS
.loop
	anim_bgeffect ANIM_BG_1F, $e, 4, 0
	anim_sound 0, 1, SFX_STRENGTH
	anim_obj ANIM_OBJ_SMALL_ROCK, 16, 0, 8, 0, $40
	anim_wait 2
	anim_obj ANIM_OBJ_SMALL_ROCK, 15, 0, 8, 4, $30
	anim_wait 2
	anim_obj ANIM_OBJ_SMALL_ROCK, 19, 0, 8, 4, $30
	anim_wait 2
	anim_obj ANIM_OBJ_SMALL_ROCK, 18, 0, 8, 0, $40
	anim_wait 2
	anim_obj ANIM_OBJ_SMALL_ROCK, 17, 0, 8, 4, $30
	anim_wait 2
	anim_jumpuntil .loop
	anim_wait 96
	anim_ret

BattleAnim_DynamicPunch:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_EXPLOSION
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_0A, 17, 0, 7, 0, $43
	anim_wait 16
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $12
	anim_call BattleAnim_DynamicPunch_branch_cbb8f
	anim_wait 16
	anim_ret

BattleAnim_Megahorn:
	anim_2gfx ANIM_GFX_HORN, ANIM_GFX_HIT
	anim_bgeffect ANIM_BG_1F, $40, 2, 0
	anim_wait 48
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, 3
	anim_obj ANIM_OBJ_HORN, 9, 0, 10, 0, 1
	anim_sound 0, 1, SFX_HORN_ATTACK
	anim_wait 16
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

BattleAnim_Dragonbreath:
	anim_1gfx ANIM_GFX_FIRE
	anim_sound 6, 2, SFX_EMBER
.loop
	anim_obj ANIM_OBJ_DRAGONBREATH, 8, 0, 11, 4, 4
	anim_wait 4
	anim_loop 10, .loop
	anim_wait 64
	anim_ret

BattleAnim_BatonPass:
	anim_1gfx ANIM_GFX_MISC
	anim_obj ANIM_OBJ_BATON_PASS, 5, 4, 13, 0, $20
	anim_sound 0, 0, SFX_BATON_PASS
	anim_call BattleAnim_ReturnMon_NoBallSound
	anim_wait 64
	anim_ret

BattleAnim_Encore:
	anim_1gfx ANIM_GFX_OBJECTS
	anim_obj ANIM_OBJ_99, 8, 0, 10, 0, $90
	anim_obj ANIM_OBJ_99, 8, 0, 10, 0, $10
	anim_sound 0, 0, SFX_ENCORE
	anim_wait 16
	anim_obj ANIM_OBJ_9A, 8, 0, 9, 0, $2c
	anim_wait 32
	anim_obj ANIM_OBJ_9A, 8, 0, 9, 0, $34
	anim_wait 16
	anim_ret

BattleAnim_Pursuit:
	anim_1gfx ANIM_GFX_HIT
	anim_jumpif 1, .was_switching
	anim_sound 0, 1, SFX_COMET_PUNCH
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 16
	anim_ret

.was_switching
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 0, 0
	anim_wait 4
	anim_call BattleAnim_FollowEnemyFeet_1
	anim_obj ANIM_OBJ_AD, -16, 4, 8, 0, 0
	anim_wait 64
	anim_obj ANIM_OBJ_AD, -16, 4, 8, 0, 1
	anim_sound 0, 1, SFX_BALL_POOF
	anim_bgeffect ANIM_BG_ENTER_MON, 0, 0, 0
	anim_wait 64
	anim_incobj 3
	anim_wait 16
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_00, 15, 0, 7, 0, 0
	anim_bgeffect ANIM_BG_2D, 0, 0, 0
	anim_wait 16
	anim_call BattleAnim_ShowMon_1
	anim_wait 1
	anim_ret

BattleAnim_RapidSpin:
	anim_2gfx ANIM_GFX_WIND, ANIM_GFX_HIT
	anim_obp0 $e4
.loop
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_RAPID_SPIN, 5, 4, 14, 0, 0
	anim_wait 2
	anim_loop 5, .loop
	anim_wait 24
	anim_call BattleAnim_FollowPlayerHead_0
	anim_bgeffect ANIM_BG_25, 0, 1, 0
	anim_wait 4
	anim_resetobp0
	anim_sound 0, 1, SFX_MEGA_KICK
	anim_obj ANIM_OBJ_04, 17, 0, 5, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 4
	anim_incobj 6
	anim_wait 1
	anim_ret

BattleAnim_SweetScent:
	anim_2gfx ANIM_GFX_FLOWER, ANIM_GFX_MISC
	anim_sound 0, 0, SFX_SWEET_SCENT
	anim_obj ANIM_OBJ_FLOWER, 8, 0, 12, 0, 2
	anim_wait 2
	anim_obj ANIM_OBJ_FLOWER, 8, 0, 10, 0, 2
	anim_wait 96
	anim_obp0 $54
	anim_sound 0, 1, SFX_SWEET_SCENT_2
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $15
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $2a
	anim_obj ANIM_OBJ_COTTON, 17, 0, 5, 0, $3f
	anim_wait 128
	anim_ret

BattleAnim_IronTail:
	anim_1gfx ANIM_GFX_REFLECT
	anim_obp0 0
	anim_sound 0, 0, SFX_RAGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_call BattleAnim_SteelShine
	anim_wait 4
	anim_1gfx ANIM_GFX_HIT
	anim_resetobp0
	anim_bgeffect ANIM_BG_26, 0, 1, 0
	anim_wait 16
	anim_sound 0, 1, SFX_MEGA_KICK
	anim_obj ANIM_OBJ_00, 17, 0, 6, 0, 0
	anim_wait 16
	anim_incbgeffect ANIM_BG_26
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_MetalClaw:
	anim_1gfx ANIM_GFX_REFLECT
	anim_obp0 0
	anim_sound 0, 0, SFX_RAGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_call BattleAnim_SteelShine
	anim_call BattleAnim_ShowMon_0
	anim_1gfx ANIM_GFX_CUT
	anim_resetobp0
	anim_sound 0, 1, SFX_SCRATCH
	anim_obj ANIM_OBJ_37, 18, 0, 6, 0, 0
	anim_obj ANIM_OBJ_37, 17, 4, 5, 4, 0
	anim_obj ANIM_OBJ_37, 17, 0, 5, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_Miasma:
	anim_1gfx ANIM_GFX_HAZE
.loop
	anim_sound 16, 2, SFX_BURN
	anim_obj ANIM_OBJ_GAS_RED, 5, 2, 10, 0, 2
	anim_wait 4
	anim_sound 16, 2, SFX_BURN
	anim_wait 4
	anim_loop 10, .loop
	anim_wait 128
	anim_clearobjs
.loop2
	anim_obj ANIM_OBJ_SMOKE, 16, 4, 7, 4, $20
	anim_sound 0, 1, SFX_SWORDS_DANCE
	anim_wait 8
	anim_loop 10, .loop2
	anim_wait 24
	anim_ret

BattleAnim_MorningSun:
	anim_1gfx ANIM_GFX_SHINE
	anim_bgeffect ANIM_BG_07, 0, 0, 0
	anim_sound 0, 0, SFX_MORNING_SUN
.loop
	anim_obj ANIM_OBJ_MORNING_SUN, 2, 0, 6, 0, $88
	anim_wait 6
	anim_loop 5, .loop
	anim_wait 32
	anim_jumpif 0, BattleAnim_MorningSun_branch_cbc80
	anim_jump BattleAnim_MorningSun_branch_cbc6a

BattleAnim_Synthesis:
	anim_1gfx ANIM_GFX_SHINE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_18, 0, 1, $40
	anim_bgeffect ANIM_BG_07, 0, 0, 0
	anim_sound 0, 0, SFX_OUTRAGE
	anim_wait 72
	anim_incbgeffect ANIM_BG_18
	anim_call BattleAnim_ShowMon_0
	anim_jumpif 1, BattleAnim_Synthesis_branch_cbc80
	anim_jump BattleAnim_Synthesis_branch_cbc6a

BattleAnim_Crunch:
	anim_2gfx ANIM_GFX_CUT, ANIM_GFX_HIT
	anim_bgp $1b
	anim_obp0 $c0
	anim_bgeffect ANIM_BG_1F, $20, 2, 0
	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $a8
	anim_obj ANIM_OBJ_BITE, 17, 0, 7, 0, $28
	anim_wait 8
	anim_sound 0, 1, SFX_BITE
	anim_obj ANIM_OBJ_00, 18, 0, 6, 0, $18
	anim_wait 16
	anim_sound 0, 1, SFX_BITE
	anim_obj ANIM_OBJ_00, 16, 0, 8, 0, $18
	anim_wait 8
	anim_ret

BattleAnim_Moonlight:
	anim_1gfx ANIM_GFX_SHINE
	anim_bgp $1b
	anim_bgeffect ANIM_BG_07, 0, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 0, 0, 5, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 2, 0, 7, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 4, 0, 9, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 6, 0, 11, 0, 0
	anim_obj ANIM_OBJ_MOONLIGHT, 8, 0, 13, 0, 0
	anim_wait 1
	anim_sound 0, 0, SFX_MOONLIGHT
	anim_wait 63
	anim_jumpif 3, BattleAnim_Moonlight_branch_cbc80
	anim_jump BattleAnim_Moonlight_branch_cbc6a

BattleAnim_HiddenPower:
	anim_1gfx ANIM_GFX_CHARGE
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_bgeffect ANIM_BG_07, 0, 2, 0
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, 0
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, 8
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $10
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $18
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $20
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $28
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $30
	anim_obj ANIM_OBJ_HIDDEN_POWER, 5, 4, 11, 0, $38
.loop
	anim_sound 0, 0, SFX_SWORDS_DANCE
	anim_wait 8
	anim_loop 12, .loop
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_wait 1
	anim_incobj 2
	anim_incobj 3
	anim_incobj 4
	anim_incobj 5
	anim_incobj 6
	anim_incobj 7
	anim_incobj 8
	anim_incobj 9
	anim_wait 16
	anim_1gfx ANIM_GFX_HIT
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_CrossChop:
	anim_1gfx ANIM_GFX_CUT
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_A0, 19, 0, 5, 0, 0
	anim_obj ANIM_OBJ_A1, 15, 0, 9, 0, 0
	anim_wait 8
	anim_bgeffect ANIM_BG_1F, $58, 2, 0
	anim_wait 92
	anim_sound 0, 1, SFX_VICEGRIP
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 8, $10
	anim_wait 16
	anim_ret

BattleAnim_Twister:
	anim_2gfx ANIM_GFX_WIND, ANIM_GFX_HIT
.loop1
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_obj ANIM_OBJ_GUST, 8, 0, 14, 0, 0
	anim_wait 6
	anim_loop 9, .loop1
.loop2
	anim_sound 0, 0, SFX_RAZOR_WIND
	anim_wait 8
	anim_loop 8, .loop2
	anim_call .inc
	anim_wait 64
	anim_obj ANIM_OBJ_01, 18, 0, 8, 0, $18
.loop3
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_wait 8
	anim_loop 4, .loop3
	anim_obj ANIM_OBJ_01, 16, 0, 4, 0, $18
.loop4
	anim_sound 0, 1, SFX_RAZOR_WIND
	anim_wait 8
	anim_loop 4, .loop4
	anim_call .inc
	anim_wait 32
	anim_ret

.inc
	anim_incobj 1
	anim_incobj 2
	anim_incobj 3
	anim_incobj 4
	anim_incobj 5
	anim_incobj 6
	anim_incobj 7
	anim_incobj 8
	anim_incobj 9
	anim_ret

BattleAnim_RainDance:
	anim_1gfx ANIM_GFX_WATER
	anim_bgp $f8
	anim_obp0 $7c
	anim_sound 0, 1, SFX_RAIN_DANCE
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 0
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 1
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 2
	anim_wait 128
	anim_ret

BattleAnim_SunnyDay:
	anim_1gfx ANIM_GFX_WATER
	anim_bgp $90
	anim_sound 0, 1, SFX_MORNING_SUN
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 2
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 2
	anim_wait 8
	anim_obj ANIM_OBJ_RAIN, 11, 0, 0, 0, 2
	anim_wait 128
	anim_ret

BattleAnim_Boil:
	anim_2gfx ANIM_GFX_ANGELS, ANIM_GFX_POISON
	anim_obp0 1, 2, 0, 0

	anim_sound 0, 0, SFX_RAGE
	anim_bgeffect ANIM_BG_WHITE_HUES, 0, 8, 0
	anim_bgeffect ANIM_BG_WHIRLPOOL, 0, 0, 0
	anim_wait 96
	anim_call .one
	anim_wait 24
	anim_call .two
	anim_wait 24

	anim_call .three
	anim_wait 16
.loop2
	anim_call .one
	anim_call .three
	anim_call .four
	anim_call .two
	anim_loop 2, .loop2

	anim_bgeffect ANIM_BG_1F, $40, 1, 0
.loop
	anim_obj ANIM_OBJ_BUBBLING_WATER, 16, 4, 9, 0, 0
	anim_call .two
	anim_obj ANIM_OBJ_BUBBLING_WATER, 14, 4, 9, 0, 0
	anim_call .three
	anim_obj ANIM_OBJ_BUBBLING_WATER, 18, 4, 9, 0, 0
	anim_call .one
	anim_loop 3, .loop

	anim_wait 16
	anim_ret

.four
	anim_bgeffect ANIM_BG_1F, 1, 2, 0
	anim_sound 0, 1, SFX_POISON
	anim_obj ANIM_OBJ_BUBBLING_WATER, 15, 4, 9, 0, 0
	anim_wait 2
.three
	anim_bgeffect ANIM_BG_1F, 1, 2, 0
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_BUBBLING_WATER, 13, 0, 9, 0, 0
	anim_obj ANIM_OBJ_BUBBLING_WATER, 17, 0, 9, 0, 0
	anim_wait 2
.two
	anim_bgeffect ANIM_BG_1F, 1, 2, 0
	anim_sound 0, 1, SFX_POISON
	anim_obj ANIM_OBJ_BUBBLING_WATER, 18, 5, 9, 0, 0
	anim_wait 2
.one
	anim_bgeffect ANIM_BG_1F, 1, 2, 0
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_BUBBLING_WATER, 14, 6, 9, 0, 0
	anim_wait 2
	anim_ret

.sound
	anim_bgeffect ANIM_BG_1F, 1, 2, 0
	anim_sound 0, 1, SFX_POISON
	anim_ret

BattleAnim_CrystalBolt:
	anim_2gfx ANIM_GFX_LIGHTNING, ANIM_GFX_ROCKS
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 6, $20
	anim_sound 0, 1, SFX_THUNDER
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_obj ANIM_OBJ_CRYSTAL_BOLT_2, 15, 0, 8, 4, 0
	anim_call .rocks
	anim_wait 26
	anim_sound 0, 1, SFX_THUNDER
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_obj ANIM_OBJ_CRYSTAL_BOLT_3, 19, 0, 8, 4, 0
	anim_call .rocks
	anim_wait 26
	anim_sound 0, 1, SFX_THUNDER
	anim_bgeffect ANIM_BG_1F, 8, 2, 0
	anim_obj ANIM_OBJ_CRYSTAL_BOLT_1, 17, 0, 8, 4, 0
	anim_call .rocks
	anim_wait 42
	anim_ret

.rocks
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $28
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $5c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $10
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $e8
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $9c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $d0
	anim_wait 6
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $1c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $50
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $dc
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $90
	anim_ret

BattleAnim_NastyPlot:
	anim_1gfx ANIM_GFX_STATUS
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_1A, 0, 1, $20
	anim_sound 0, 1, SFX_MIND_READER
	anim_obj ANIM_OBJ_PSYCH_UP, 5, 4, 11, 0, 0
	anim_obj ANIM_OBJ_PSYCH_UP, 5, 4, 11, 0, $10
	anim_obj ANIM_OBJ_PSYCH_UP, 5, 4, 11, 0, $20
	anim_obj ANIM_OBJ_PSYCH_UP, 5, 4, 11, 0, $30
	anim_wait 32
	anim_incbgeffect ANIM_BG_1A
	anim_call BattleAnim_ShowMon_0
	anim_wait 48
	anim_ret

BattleAnim_AerialAce_ExtremeSpeed:
	anim_2gfx ANIM_GFX_SPEED, ANIM_GFX_CUT
	anim_bgeffect ANIM_BG_HIDE_MON, 0, 1, 0
	anim_sound 0, 0, SFX_MENU
	anim_obj ANIM_OBJ_SPEED_LINE, 3, 0, 11, 0, 2
	anim_obj ANIM_OBJ_SPEED_LINE, 4, 0, 11, 0, 1
	anim_obj ANIM_OBJ_SPEED_LINE, 5, 0, 11, 0, 0
	anim_obj ANIM_OBJ_SPEED_LINE, 6, 0, 11, 0, $80
	anim_obj ANIM_OBJ_SPEED_LINE, 7, 0, 11, 0, $81
	anim_obj ANIM_OBJ_SPEED_LINE, 8, 0, 11, 0, $82
	anim_wait 12
	anim_sound 0, 1, SFX_CUT
	anim_obj ANIM_OBJ_3A, 19, 0, 5, 0, 0
	anim_wait 32
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_ret

BattleAnim_AncientPower:
	anim_2gfx ANIM_GFX_ROCKS, ANIM_GFX_HIT
	anim_sound 0, 0, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 8, 0, 13, 4, $20
	anim_wait 8
	anim_sound 0, 0, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 9, 3, 12, 6, $20
	anim_wait 8
	anim_sound 0, 0, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 10, 5, 12, 1, $20
	anim_wait 8
	anim_sound 0, 0, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 12, 0, 11, 4, $20
	anim_wait 8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 13, 2, 10, 7, $20
	anim_wait 8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 14, 4, 10, 2, $20
	anim_wait 8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ANCIENTPOWER, 15, 6, 9, 5, $20
	anim_wait 8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_00, 17, 0, 7, 0, 0
	anim_wait 6
	anim_ret

BattleAnim_ShadowBall:
	anim_2gfx ANIM_GFX_EGG, ANIM_GFX_SMOKE
	anim_bgp $1b
	anim_sound 6, 2, SFX_SLUDGE_BOMB
	anim_obj ANIM_OBJ_SHADOW_BALL, 8, 0, 11, 4, 2
	anim_wait 32
	anim_obj ANIM_OBJ_BALL_POOF, -16, 4, 7, 0, $10
	anim_wait 24
	anim_ret

BattleAnim_FutureSight:
	anim_1gfx ANIM_GFX_WIND
	anim_bgeffect ANIM_BG_06, 0, 2, 0
	anim_bgeffect ANIM_BG_ALTERNATE_HUES, 0, 2, 0
	anim_bgeffect ANIM_BG_PSYCHIC, 0, 0, 0
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 3, 0, $10
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 6, 0, 2
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 11, 0, 8
	anim_wait 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 4, 0, 6
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 7, 0, $c
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 10, 0, 4
	anim_obj ANIM_OBJ_AGILITY, 1, 0, 13, 0, $e
.loop
	anim_sound 0, 0, SFX_THROW_BALL
	anim_wait 16
	anim_loop 4, .loop
	anim_incbgeffect ANIM_BG_PSYCHIC
	anim_ret

BattleAnim_RockSmash:
	anim_2gfx ANIM_GFX_ROCKS, ANIM_GFX_HIT
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_01, 16, 0, 7, 0, 0
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $28
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $5c
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $10
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $e8
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $9c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $d0
	anim_wait 6
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $1c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $50
	anim_sound 0, 1, SFX_SPARK
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $dc
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $90
	anim_wait 32
	anim_ret

BattleAnim_HeadSmash:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_ROCKS
	anim_call BattleAnim_FollowEnemyFeet_0
	anim_bgeffect ANIM_BG_FLASH_INVERTED, 0, 4, $10
	anim_bgeffect ANIM_BG_TACKLE, 0, 1, 0
	anim_wait 3
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_00, 16, 0, 6, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_TACKLE
	anim_obj ANIM_OBJ_00, 18, 0, 6, 0, 0
	anim_wait 3
	anim_bgeffect ANIM_BG_1F, $20, 2, 0
.loop
	anim_sound 0, 1, SFX_SPARK

	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $28
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $5c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $10
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $e8
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $9c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $d0
	anim_wait 6
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $1c
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $50
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $dc
	anim_obj ANIM_OBJ_ROCK_SMASH, 16, 0, 8, 0, $90
	anim_wait 10
	anim_loop 2, .loop
	anim_wait 8
	anim_call BattleAnim_ShowMon_0
	anim_ret

BattleAnim_GhostHammer:
	anim_1gfx ANIM_GFX_FIRE

	anim_bgeffect ANIM_BG_SLIDE_OUT_MON, 0, 0, 0
	anim_wait 16
	anim_bgp 0, 1, 2, 3
	anim_wait 16
	anim_bgeffect ANIM_BG_1F, $20, 2, $40
.loop
	anim_sound 6, 2, SFX_SPARK
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $ff
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $ef
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $df
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $cf
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $bf
	anim_obj ANIM_OBJ_GHOST_FIRE_ORBIT, 1, 0, 14, 4, $af
	anim_wait 16
	anim_bgeffect ANIM_BG_1F, $10, 2, $40
	anim_loop 3, .loop
	anim_sound 6, 2, SFX_SPARK
	anim_wait 8
	anim_bgeffect ANIM_BG_SLIDE_IN_MON, 0, 0, 0
	anim_wait 32
	anim_ret

BattleAnim_PoisonJab:
	anim_2gfx ANIM_GFX_HIT, ANIM_GFX_POISON
	anim_sound 0, 1, SFX_MEGA_PUNCH
	anim_obj ANIM_OBJ_06, 17, 0, 7, 0, 0
	anim_wait 6
	anim_obj ANIM_OBJ_01, 17, 0, 7, 0, 0
	anim_wait 8
	anim_call BattleAnim_PoisonJab_branch_cbc15
	anim_wait 24
	anim_ret

BattleAnim_DreamEater_branch_cbab3:
BattleAnim_GigaDrain_branch_cbab3:
BattleAnim_LeechLife_branch_cbab3:
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, 0
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, 8
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $10
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $18
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $20
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $28
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $30
	anim_obj ANIM_OBJ_71, -16, 4, 5, 4, $38
	anim_ret

BattleAnim_Glare_branch_cbadc:
BattleAnim_Leer_branch_cbadc:
BattleAnim_ScaryFace_branch_cbadc:
	anim_sound 6, 2, SFX_LEER
	anim_obj ANIM_OBJ_4E, 9, 0, 10, 4, 0
	anim_obj ANIM_OBJ_4E, 8, 0, 10, 0, 0
	anim_obj ANIM_OBJ_4E, 11, 0, 9, 4, 0
	anim_obj ANIM_OBJ_4E, 10, 0, 9, 0, 0
	anim_obj ANIM_OBJ_4E, 13, 0, 8, 4, 0
	anim_obj ANIM_OBJ_4E, 12, 0, 8, 0, 0
	anim_obj ANIM_OBJ_4E, 15, 0, 7, 4, 0
	anim_obj ANIM_OBJ_4E, 14, 0, 7, 0, 0
	anim_obj ANIM_OBJ_4F, -16, 2, 6, 6, 0
	anim_obj ANIM_OBJ_4F, 15, 2, 6, 2, 0
	anim_ret

BattleAnim_Fly_branch_cbb12:
BattleAnim_Teleport_branch_cbb12:
	anim_sound 0, 0, SFX_WARP_TO
	anim_obj ANIM_OBJ_44, 5, 4, 13, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 12, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 11, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 10, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 9, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 8, 4, 0
	anim_obj ANIM_OBJ_44, 5, 4, 7, 4, 0
	anim_ret

BattleAnim_AuroraBeam_branch_cbb39:
BattleAnim_HyperBeam_branch_cbb39:
BattleAnim_Solarbeam_branch_cbb39:
	anim_sound 0, 0, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 8, 0, 11, 4, 0
	anim_wait 4
	anim_sound 0, 0, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 10, 0, 10, 4, 0
	anim_wait 4
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 12, 0, 9, 4, 0
	anim_wait 4
	anim_sound 0, 1, SFX_HYPER_BEAM
	anim_obj ANIM_OBJ_27, 14, 0, 8, 4, 0
	anim_obj ANIM_OBJ_28, 15, 6, 7, 6, 0
	anim_ret

BattleAnim_Explosion_branch_cbb62:
BattleAnim_Selfdestruct_branch_cbb62:
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 3, 0, 8, 0, 0
	anim_wait 5
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 7, 0, 13, 0, 0
	anim_wait 5
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 3, 0, 13, 0, 0
	anim_wait 5
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 7, 0, 8, 0, 0
	anim_wait 5
	anim_sound 0, 0, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 5, 0, 10, 4, 0
	anim_ret

BattleAnim_DynamicPunch_branch_cbb8f:
BattleAnim_Explosion_branch_cbb8f:
BattleAnim_Selfdestruct_branch_cbb8f:
	anim_sound 0, 1, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 18, 4, 4, 0, 0
	anim_wait 5
	anim_sound 0, 1, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 14, 4, 9, 0, 0
	anim_wait 5
	anim_sound 0, 1, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 18, 4, 9, 0, 0
	anim_wait 5
	anim_sound 0, 1, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, 14, 4, 4, 0, 0
	anim_wait 5
	anim_sound 0, 1, SFX_EGG_BOMB
	anim_obj ANIM_OBJ_17, -16, 4, 6, 4, 0
	anim_ret

BattleAnim_Growl_branch_cbbbc:
BattleAnim_Roar_branch_cbbbc:
BattleAnim_Snore_branch_cbbbc:
	anim_obj ANIM_OBJ_4B, 8, 0, 9, 4, 0
	anim_obj ANIM_OBJ_4B, 8, 0, 11, 0, 1
	anim_obj ANIM_OBJ_4B, 8, 0, 12, 4, 2
	anim_ret

BattleAnim_FirePunch_branch_cbbcc:
BattleAnim_TriAttack_branch_cbbcc:
	anim_sound 0, 1, SFX_EMBER
.loop
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 0, $10
	anim_obj ANIM_OBJ_BURNED, 17, 0, 7, 0, $90
	anim_wait 4
	anim_loop 4, .loop
	anim_ret

BattleAnim_IcePunch_branch_cbbdf:
BattleAnim_PowderSnow_branch_cbbdf:
BattleAnim_TriAttack_branch_cbbdf:
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 16, 0, 5, 2, 0
	anim_wait 6
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 18, 0, 8, 6, 0
	anim_wait 6
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 15, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 19, 0, 7, 0, 0
	anim_wait 6
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 18, 0, 5, 2, 0
	anim_wait 6
	anim_sound 0, 1, SFX_SHINE
	anim_obj ANIM_OBJ_12, 16, 0, 8, 6, 0
	anim_ret

BattleAnim_PoisonJab_branch_cbc15:
BattleAnim_SludgeBomb_branch_cbc15:
BattleAnim_Sludge_branch_cbc15:
BattleAnim_Toxic_branch_cbc15:
.loop
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_1A, -16, 4, 9, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_1A, 14, 4, 9, 0, 0
	anim_wait 8
	anim_sound 0, 1, SFX_UNKNOWN_7F
	anim_obj ANIM_OBJ_1A, 18, 4, 9, 0, 0
	anim_wait 8
	anim_loop 5, .loop
	anim_ret

BattleAnim_Acid_branch_cbc35:
BattleAnim_Toxic_branch_cbc35:
.loop
	anim_sound 6, 2, SFX_BUBBLEBEAM
	anim_obj ANIM_OBJ_19, 8, 0, 11, 4, $10
	anim_wait 5
	anim_loop 8, .loop
	anim_ret

BattleAnim_MudSlap_branch_cbc5b:
BattleAnim_SandAttack_branch_cbc5b:
.loop
	anim_sound 6, 2, SFX_MENU
	anim_obj ANIM_OBJ_58, 8, 0, 11, 4, 4
	anim_wait 4
	anim_loop 8, .loop
	anim_wait 32
	anim_ret

BattleAnim_Moonlight_branch_cbc6a:
BattleAnim_MorningSun_branch_cbc6a:
BattleAnim_Synthesis_branch_cbc6a:
	anim_sound 0, 0, SFX_METRONOME
	anim_obj ANIM_OBJ_GLIMMER, 5, 4, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 12, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 13, 0, 0
	anim_wait 21
	anim_ret

BattleAnim_Moonlight_branch_cbc80:
BattleAnim_MorningSun_branch_cbc80:
BattleAnim_Synthesis_branch_cbc80:
	anim_sound 0, 0, SFX_METRONOME
.loop
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 3, 0, 13, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 7, 0, 8, 0, 0
	anim_wait 5
	anim_obj ANIM_OBJ_GLIMMER, 5, 0, 10, 4, 0
	anim_wait 5
	anim_loop 2, .loop
	anim_wait 16
	anim_ret

BattleAnim_FollowEnemyFeet_0:
	anim_enemyfeetobj
	anim_bgeffect ANIM_BG_FEET_FOLLOW, 0, 0, 0
	anim_wait 6
	anim_ret

BattleAnim_FollowPlayerHead_0:
	anim_playerheadobj
	anim_bgeffect ANIM_BG_HEAD_FOLLOW, 0, 0, 0
	anim_wait 6
	anim_ret

BattleAnim_ShowMon_0:
	anim_wait 1
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 0, 0
	anim_wait 5
	anim_incobj 1
	anim_wait 1
	anim_ret

BattleAnim_FollowEnemyFeet_1:
	anim_enemyfeetobj
	anim_bgeffect ANIM_BG_FEET_FOLLOW, 0, 1, 0
	anim_wait 6
	anim_ret

BattleAnim_FollowPlayerHead_1:
	anim_playerheadobj
	anim_bgeffect ANIM_BG_HEAD_FOLLOW, 0, 1, 0
	anim_wait 4
	anim_ret

BattleAnim_ShowMon_1:
	anim_wait 1
	anim_bgeffect ANIM_BG_SHOW_MON, 0, 1, 0
	anim_wait 4
	anim_incobj 1
	anim_wait 1
	anim_ret
