public override void Fight() { //freak out because the shit is hitting the fan if (this.Player.HealthPercent < 10 && this.Player.CanUse("Psychic Scream")) { this.Player.StopWand(); this.Player.Cast("Psychic Scream"); } //healing is priority if (this.Player.HealthPercent <= 40) { //Requires Quickheal addon this.Player.DoString("QuickHeal()"); } //make sure to kill the low health one ZzukBot.Engines.CustomClass.Objects._Unit lowHealthMob = lowestHealthAttackingMob(); if (this.Player.TargetGuid != lowHealthMob.Guid) { this.Player.SetTargetTo(lowHealthMob); } //multi mob SWP all the time ZzukBot.Engines.CustomClass.Objects._Unit mobwithoutSWP = mobWithoutDebuff("Shadow Word: Pain"); if (mobwithoutSWP != null && this.Player.GetSpellRank("Shadow Word: Pain") != 0) { if (!mobwithoutSWP.GotDebuff("Shadow Word: Pain") && mobwithoutSWP.HealthPercent > 10) { this.Player.StopWand(); this.Player.SetTargetTo(mobwithoutSWP); this.Player.Cast("Shadow Word: Pain"); return; } } if (this.Player.GetSpellRank("Power Word: Shield") != 0) { if (!this.Player.GotBuff("Power Word: Shield") && !this.Player.GotDebuff("Weakened Soul") && this.Target.HealthPercent > 5) { this.Player.StopWand(); this.Player.Cast("Power Word: Shield"); } } if (this.Player.GetSpellRank("Inner Fire") != 0) { if (!Player.GotBuff("Inner Fire")) { this.Player.StopWand(); this.Player.Cast("Inner Fire"); return; } } if (this.Player.IsWandEquipped()) { this.Player.StartWand(); } else { this.Player.Attack(); } return; }
public override void Fight() { //freak out because the shit is hitting the fan if (this.Player.HealthPercent < 10 && this.Player.CanUse("Psychic Scream")) { this.Player.StopWand(); this.Player.Cast("Psychic Scream"); } //make sure to kill the low health one ZzukBot.Engines.CustomClass.Objects._Unit lowHealthMob = lowestHealthAttackingMob(); if (this.Player.TargetGuid != lowHealthMob.Guid) { this.Player.SetTargetTo(lowHealthMob); } //multi mob SWP all the time ZzukBot.Engines.CustomClass.Objects._Unit mobwithoutSWP = mobWithoutDebuff("Shadow Word: Pain"); if (mobwithoutSWP != null && this.Player.GetSpellRank("Shadow Word: Pain") != 0) { if (!mobwithoutSWP.GotDebuff("Shadow Word: Pain") && mobwithoutSWP.HealthPercent > 10) { if (this.Player.ManaPercent > 9) { this.Player.SetTargetTo(mobwithoutSWP); this.Player.Cast("Shadow Word: Pain"); return; } } } if (this.Player.GetSpellRank("Vampiric Embrace") != 0) { if (this.Player.CanUse("Vampiric Embrace") && !Target.GotDebuff("Vampiric Embrace")) { this.Player.Cast("Vampiric Embrace"); return; } } if (this.Player.GetSpellRank("Mind Blast") != 0) { if (this.Player.CanUse("Mind Blast") && this.Player.ManaPercent > 10) { this.Player.Cast("Mind Blast"); return; } } if (this.Player.GetSpellRank("Devouring Plague") != 0) { if (this.Player.CanUse("Devouring Plague") && this.Player.ManaPercent > 10) { this.Player.Cast("Devouring Plague"); return; } } if (this.Player.GetSpellRank("Power Word: Shield") != 0) { if (!Target.GotDebuff("Vampiric Embrace")) { if (!this.Player.GotBuff("Power Word: Shield") && !this.Player.GotDebuff("Weakened Soul") && this.Target.HealthPercent > 5) { this.Player.Cast("Power Word: Shield"); } } if (this.Player.HealthPercent <= 80) { if (!this.Player.GotBuff("Power Word: Shield") && !this.Player.GotDebuff("Weakened Soul") && this.Target.HealthPercent > 5) { this.Player.Cast("Power Word: Shield"); } } } if (this.Player.GetSpellRank("Inner Fire") != 0) { if (!Player.GotBuff("Inner Fire")) { this.Player.Cast("Inner Fire"); return; } } if (this.Player.GetSpellRank("Mind Flay") != 0) { if (this.Player.CanUse("Mind Flay") && !Target.GotDebuff("Mind Flay")) { if (this.Player.ManaPercent > 9) { this.Player.Cast("Mind Flay"); return; } } } if (this.Player.IsWandEquipped()) { if (this.Player.ManaPercent <= 10) { this.Player.StartWand(); } } else { this.Player.Attack(); } return; }