Scripts/Ulduar/Flame Leviathan: Make Pool of Tar actually apply harmful auras without resetting instantly.

Closes #1798
This commit is contained in:
Machiavelli
2011-06-21 02:07:06 +02:00
parent 3f5453c657
commit aa55e2a417

View File

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