aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <machiavelli.trinity@gmail.com>2011-06-21 02:07:06 +0200
committerMachiavelli <machiavelli.trinity@gmail.com>2011-06-21 02:07:06 +0200
commitaa55e2a417acf8f6b652988526046072ffde7ed4 (patch)
tree7bd5f42f50600be1eade03d3dc10600b316b352a
parent3f5453c657f765d33c24849a2aac5abe7392625f (diff)
Scripts/Ulduar/Flame Leviathan: Make Pool of Tar actually apply harmful auras without resetting instantly.
Closes #1798
-rw-r--r--src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp b/src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp
index 0661cc42d16..f54417d46bd 100644
--- a/src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp
+++ b/src/server/scripts/Northrend/Ulduar/ulduar/boss_flame_leviathan.cpp
@@ -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