Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool FlameShock(bool bIgnoreWaterShield)
- {
- // NOTE: with patch 3.3 of WoW using Shock spells is not as much of a concern
- // ... since they drastically increased the mana regen
- // --- SO, force it to ignore Water Shield for now
- bIgnoreWaterShield = true;
- if (!combatChecks())
- Dlog("FlameShock: failed combat check");
- else if (!HaveValidTarget() || !AllowNonHealSpells())
- ;
- else if (!Safe_KnownSpell("Flame Shock"))
- ;
- else if (IsImmunneToFire(_me.CurrentTarget))
- Dlog("skipping Flame Shock since {0}[{1}] is immune to Fire damage", _me.CurrentTarget.Name,
- _me.CurrentTarget.Entry);
- else if (_me.CurrentTarget.Buffs.ContainsKey("Flame Shock"))
- Dlog("FlameShock: target already has DoT");
- else if (bIgnoreWaterShield == false && !Safe_KnownSpell("Water Shield"))
- ;
- else
- return Safe_CastSpell("Flame Shock", SpellRange.Check, SpellWait.NoWait);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement