From 1d43003cfa29cee2c7921fdeaa5c1714d085c770 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 15 May 2020 18:16:03 +0200 Subject: Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel --- .../scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit v1.2.3