diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-05-15 18:16:03 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-04 15:33:04 +0100 |
commit | 5e37b1cd5d3f96f69f695b2314f16ee92c66297a (patch) | |
tree | 0f896e888adb2749f640fe3d162e6b2606f2f7fa /src | |
parent | d62886685be9590b7b67c35aea2ac6024039e671 (diff) |
Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel
(cherry picked from commit 1d43003cfa29cee2c7921fdeaa5c1714d085c770)
Diffstat (limited to 'src')
-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 2a8416c7de4..0a3939e8046 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -729,7 +729,11 @@ class npc_putricide_oozeAI : public ScriptedAI void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override { if (!_newTargetSelectTimer && spell->Id == _hitTargetSpellId) + { _newTargetSelectTimer = 1000; + // go passive until next target selection + me->SetReactState(REACT_PASSIVE); + } } void Reset() override @@ -932,6 +936,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 |