mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 23:56:25 +00:00
fix(Core/Scripts): Bloodscale Enchantress/Rajis Fyashe freezing circle (#13963)
Co-authored-by: Eridium <killyana@users.noreply.github.com> Co-authored-by: Lucas Nascimento <keader.android@gmail.com> Co-authored-by: Eridium <killyana@users.noreply.github.com> Co-authored-by: Lucas Nascimento <keader.android@gmail.com>
This commit is contained in:
@@ -1297,48 +1297,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class npc_frostbite_invisible_stalker : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_frostbite_invisible_stalker() : CreatureScript("npc_frostbite_invisible_stalker") { }
|
||||
|
||||
struct npc_frostbite_invisible_stalkerAI: public NullCreatureAI
|
||||
{
|
||||
npc_frostbite_invisible_stalkerAI(Creature* creature) : NullCreatureAI(creature)
|
||||
{
|
||||
timer = 3500;
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
{
|
||||
me->SetOrientation(i * M_PI / 3);
|
||||
me->CastSpell(me, 34740, true);
|
||||
me->CastSpell(me, 34746, true);
|
||||
}
|
||||
}
|
||||
|
||||
uint16 timer;
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (timer)
|
||||
{
|
||||
if (timer <= diff)
|
||||
{
|
||||
int32 dmg = 2200;
|
||||
me->CastCustomSpell(me, 34779, 0, &dmg, 0, true);
|
||||
timer = 0;
|
||||
}
|
||||
else
|
||||
timer -= diff;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return GetPitOfSaronAI<npc_frostbite_invisible_stalkerAI>(creature);
|
||||
}
|
||||
};
|
||||
|
||||
class spell_pos_empowered_blizzard : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
@@ -1574,7 +1532,6 @@ void AddSC_pit_of_saron()
|
||||
new npc_pos_martin_or_gorkun_second();
|
||||
new npc_pos_freed_slave();
|
||||
new npc_pos_leader_second();
|
||||
new npc_frostbite_invisible_stalker();
|
||||
|
||||
new spell_pos_empowered_blizzard();
|
||||
new spell_pos_slave_trigger_closest();
|
||||
|
||||
Reference in New Issue
Block a user