mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripts: Fixed Volatile Ooze/Gas Cloud issues in Professor Putricide
Closes #18925
(cherry picked from commit 8d198cb360)
This commit is contained in:
@@ -278,7 +278,7 @@ class boss_professor_putricide : public CreatureScript
|
||||
Talk(SAY_AGGRO);
|
||||
DoCast(me, SPELL_OOZE_TANK_PROTECTION, true);
|
||||
DoZoneInCombat(me);
|
||||
|
||||
me->SetCombatPulseDelay(5);
|
||||
instance->SetBossState(DATA_PROFESSOR_PUTRICIDE, IN_PROGRESS);
|
||||
}
|
||||
|
||||
@@ -730,7 +730,7 @@ class npc_putricide_oozeAI : public ScriptedAI
|
||||
{
|
||||
public:
|
||||
npc_putricide_oozeAI(Creature* creature, uint32 auraSpellId, uint32 hitTargetSpellId) : ScriptedAI(creature),
|
||||
_auraSpellId(auraSpellId), _hitTargetSpellId(hitTargetSpellId), _newTargetSelectTimer(0) { }
|
||||
_auraSpellId(auraSpellId), _hitTargetSpellId(hitTargetSpellId), _newTargetSelectTimer(0), _instance(creature->GetInstanceScript()){ }
|
||||
|
||||
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
|
||||
{
|
||||
@@ -740,6 +740,10 @@ class npc_putricide_oozeAI : public ScriptedAI
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
if (_instance->GetBossState(DATA_PROFESSOR_PUTRICIDE) != IN_PROGRESS)
|
||||
me->DespawnOrUnsummon();
|
||||
|
||||
me->SetInCombatWithZone();
|
||||
DoCastAOE(_auraSpellId, true);
|
||||
}
|
||||
|
||||
@@ -780,6 +784,7 @@ class npc_putricide_oozeAI : public ScriptedAI
|
||||
uint32 _auraSpellId;
|
||||
uint32 _hitTargetSpellId;
|
||||
uint32 _newTargetSelectTimer;
|
||||
InstanceScript* _instance;
|
||||
};
|
||||
|
||||
class npc_volatile_ooze : public CreatureScript
|
||||
|
||||
Reference in New Issue
Block a user