Skills:
  - glow{audience=caster} @target

mexbot_pet-order-attack:
  Cooldown: 1
  Skills:
  - message{m=&ePet&c Autoattack&e!} @owner
  - state{s=attack;li=3;lo=2} @self
  - delay 10
  - lunge{velocity=0.5;velocityY=0} @forward
  - effect:sound{s=entity.player.attack.nodamage;v=2;p=1} @owner
  - delay 5
  - totem{md=2;c=1;oH=mexbot_pet-damage;hnp=true;hp=true;hR=1;vR=1;i=1} @forward{f=2}
mexbot_pet-damage:
  TargetConditions:
  - owner false
  Skills:
  - throw{velocity=3;velocityY=6}
  - delay 5
  - basedamage{m=1.0}
  - effect:particles{particle=sweep;amount=10;hS=.25;vS=.25;y=0.25}
  
mexbot_pet-order-charge:
  Cooldown: 10
  Skills:
  - message{m=&ePet uses&c Charge&e!} @owner
  - state{s=attack;li=3;lo=2} @self
  - delay 10
  - lunge{velocity=5;velocityY=0} @forward
  - delay 1
  - Aura{auraname=charge;ot=mexbot_pet-charge_damage;interval=1;duration=10} @self
mexbot_pet-charge_damage:
  Skills:
  - basedamage{m=3.0} @EIR{r=3;ignore=players}
  - throw{velocity=5;velocityY=10} @EIR{r=3;ignore=players}
  - effect:particles{particle=block_crack;m=dirt;amount=10;hS=1;vS=0} @self
  - effect:particles{p=cloud;amount=10;hS=0.5;vS=0.5;y=-0.7} @self
  - effect:sound{s=entity.horse.gallop;v=2;p=0} @owner
  
mexbot_pet-order-sprint:
  Cooldown: 20
  TargetConditions:
  - hasaura{n=mexbot_pet-sprint} false
  Skills:
  - message{m=&ePet uses&c Sprint&e!} @owner
  - effect:particles{p=cloud;amount=50;speed=0;hS=0.5;vS=0.5} @Self
  - Aura{auraName=mexbot_pet-sprint;oS=mexbot_pet-sprint_start_anim;onTick=mexbot_pet-sprint_anim;oE=mexbot_pet-sprint_end;interval=10;duration=200} @Self
mexbot_pet-sprint_start_anim:
  Skills:
  - defaultstate{t=walk;s=running} @self
  - lunge{velocity=2;velocityY=0} @Self
  - effect:sound{s=entity.witch.throw;v=1;p=0} @EIR{r=5}
  - potion{type=SPEED;duration=200;lvl=10} @Self
mexbot_pet-sprint_anim:
  TargetConditions:
  - hasaura{n=mexbot_pet-sprint} true
  - moving true
  Skills:
  - effect:particles{particle=block_crack;m=dirt;amount=20;hS=0.1;vS=0.1} @self
  - effect:particles{p=cloud;amount=1;hS=0;vS=0.1;y=1} @self
  - effect:sound{s=entity.horse.gallop;v=2;p=0} @owner
mexbot_pet-sprint_end:
  Skills:
  - message{m=&cSprint&e goes Cooldown!} @owner
  - defaultstate{t=walk;s=walk} @self