diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-09-18 18:11:22 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-09-18 18:11:22 +0200 |
commit | cc08d911f6703b43a2004f562876e4789f97bd1c (patch) | |
tree | 4599cddac6a82ec54713558acfeef68b01f3e2b5 | |
parent | 959aa4cd97ba0fd9d73e440850547a1ff49cd2b7 (diff) |
Scripts/Icecrown Citadel: Fixed Unbound Plague
Closes #7791
-rwxr-xr-x | src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp index 489616332c8..7f6448382ba 100755 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -1122,17 +1122,18 @@ class spell_putricide_unbound_plague : public SpellScriptLoader return true; } - SpellCastResult CheckCast() + void FilterTargets(std::list<WorldObject*>& targets) { if (AuraEffect const* eff = GetCaster()->GetAuraEffect(SPELL_UNBOUND_PLAGUE_SEARCHER, EFFECT_0)) + { if (eff->GetTickNumber() < 2) - return SPELL_FAILED_DONT_REPORT; + { + targets.clear(); + return; + } + } - return SPELL_CAST_OK; - } - void FilterTargets(std::list<WorldObject*>& targets) - { targets.remove_if(Trinity::UnitAuraCheck(true, sSpellMgr->GetSpellIdForDifficulty(SPELL_UNBOUND_PLAGUE, GetCaster()))); Trinity::Containers::RandomResizeList(targets, 1); } @@ -1171,7 +1172,6 @@ class spell_putricide_unbound_plague : public SpellScriptLoader void Register() { - OnCheckCast += SpellCheckCastFn(spell_putricide_unbound_plague_SpellScript::CheckCast); OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_putricide_unbound_plague_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ALLY); OnEffectHitTarget += SpellEffectFn(spell_putricide_unbound_plague_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); } |