Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void OnPull(Anthrax.WoW.Classes.ObjectManager.WowUnit unit) //Called once to start the combat, put starter spell / combo here
- {
- if (unit.Position.Distance3DFromPlayer <= 7) //Evaluate distance between target (unit) and player
- {
- if (Anthrax.AI.Controllers.Spell.CanCast((int)Spells.EasytoUseNameSpell)) //Evaluate if the spell can be cast (Mana, rage, energy...)
- {
- Anthrax.Logger.WriteLine("Casting Spell EasytoUseNameSpell"); //Write something in the log
- Anthrax.AI.Controllers.Spell.Cast((int)Spells.EasytoUseNameSpell, unit); //casting the spell on the unit (target)
- return;
- }
- }
- else
- {
- Anthrax.AI.Controllers.Mover.MoveToObject(unit); //Target is too far, this will get closer
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement