mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Scripts/Ulduar/Flame Leviathan: Make Pool of Tar actually apply harmful auras without resetting instantly.
Closes #1798
This commit is contained in:
@@ -852,11 +852,12 @@ class spell_pool_of_tar : public CreatureScript
|
||||
public:
|
||||
spell_pool_of_tar() : CreatureScript("spell_pool_of_tar") { }
|
||||
|
||||
struct spell_pool_of_tarAI : public PassiveAI
|
||||
struct spell_pool_of_tarAI : public ScriptedAI
|
||||
{
|
||||
spell_pool_of_tarAI(Creature* creature) : PassiveAI(creature)
|
||||
spell_pool_of_tarAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
me->AddAura(SPELL_TAR_PASSIVE, me);
|
||||
}
|
||||
|
||||
@@ -870,6 +871,8 @@ class spell_pool_of_tar : public CreatureScript
|
||||
if (spell->SchoolMask & SPELL_SCHOOL_MASK_FIRE && !me->HasAura(SPELL_BLAZE))
|
||||
me->CastSpell(me, SPELL_BLAZE, true);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 const diff) {}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
|
||||
Reference in New Issue
Block a user