public override void Tick() { Thread.Sleep(200); if (!mbox.slavesAI) { return; } if (!me.GetObjectMgrAndPlayer()) { return; } if (me.IsOnCooldown("Shadow Bolt")) /* global cooldown check */ { return; } GameObject target = mbox.GetMasterAttackTarget(me); if (target == null) { return; } me.ControlInterface.remoteControl.SelectUnit(target.GUID); me.CastSpell("Shadow Bolt"); }
public override void Tick() { Thread.Sleep(200); if (!mbox.slavesAI) { return; } if (!me.GetObjectMgrAndPlayer()) { return; } if (me.IsOnCooldown("Smite")) /* global cooldown check */ { return; } foreach (Client client in mbox.clients) { if (client.Player.HealthPct < 70 && (!client.HasAura(client.Player, "Renew", null))) { me.CastSpellOnGuid("Renew", client.Player.GUID); return; } } GameObject target = mbox.GetMasterAttackTarget(me); if (target == null) { return; } me.ControlInterface.remoteControl.SelectUnit(target.GUID); me.CastSpell("Smite"); }