mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 00:48:39 +01:00
Scripts/Icecrown Citadel: Fixed Professor Putricide oozes not moving during their channel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user