Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel

This commit is contained in:
Shauren
2020-05-15 18:16:03 +02:00
parent 69dc704cd5
commit 1d43003cfa

View File

@@ -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