Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. private bool FlameShock(bool bIgnoreWaterShield)
  2. {
  3. // NOTE: with patch 3.3 of WoW using Shock spells is not as much of a concern
  4. // ... since they drastically increased the mana regen
  5. // --- SO, force it to ignore Water Shield for now
  6. bIgnoreWaterShield = true;
  7.  
  8. if (!combatChecks())
  9. Dlog("FlameShock: failed combat check");
  10. else if (!HaveValidTarget() || !AllowNonHealSpells())
  11. ;
  12. else if (!Safe_KnownSpell("Flame Shock"))
  13. ;
  14. else if (IsImmunneToFire(_me.CurrentTarget))
  15. Dlog("skipping Flame Shock since {0}[{1}] is immune to Fire damage", _me.CurrentTarget.Name,
  16. _me.CurrentTarget.Entry);
  17. else if (_me.CurrentTarget.Buffs.ContainsKey("Flame Shock"))
  18. Dlog("FlameShock: target already has DoT");
  19. else if (bIgnoreWaterShield == false && !Safe_KnownSpell("Water Shield"))
  20. ;
  21. else
  22. return Safe_CastSpell("Flame Shock", SpellRange.Check, SpellWait.NoWait);
  23.  
  24. return false;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement