diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-05-15 18:16:03 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-05-15 18:16:03 +0200 |
commit | 1d43003cfa29cee2c7921fdeaa5c1714d085c770 (patch) | |
tree | 30a862fed8dd716725aaa0350e690309e38e2514 | |
parent | 69dc704cd5cffc48f0e6d4b8e9cc0ae120fd469b (diff) |
Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel
-rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp index 8409fbf14cd..364a4dbb6c9 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -731,7 +731,11 @@ class npc_putricide_oozeAI : public ScriptedAI void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override { if (!_newTargetSelectTimer && spell->Id == sSpellMgr->GetSpellIdForDifficulty(_hitTargetSpellId, me)) + { _newTargetSelectTimer = 1000; + // go passive until next target selection + me->SetReactState(REACT_PASSIVE); + } } void Reset() override @@ -934,6 +938,8 @@ class spell_putricide_ooze_channel : public SpellScriptLoader GetCaster()->GetThreatManager().ResetAllThreat(); GetCaster()->ToCreature()->AI()->AttackStart(GetHitUnit()); GetCaster()->GetThreatManager().AddThreat(GetHitUnit(), 500000000.0f, nullptr, true, true); // value seen in sniff + GetCaster()->GetThreatManager().FixateTarget(GetHitUnit()); + GetCaster()->ToCreature()->SetReactState(REACT_AGGRESSIVE); } void Register() override |