mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
fix(Scripts/Northrend): improve EoE encounter visuals (#25258)
Co-authored-by: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com> Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
@@ -886,7 +886,10 @@ struct npc_nexus_lord : public ScriptedAI
|
||||
{
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
timer = 0;
|
||||
me->CastSpell(me, SPELL_TELEPORT_VISUAL, true);
|
||||
ScheduleUniqueTimedEvent(0s, [&]
|
||||
{
|
||||
DoCastSelf(SPELL_TELEPORT_VISUAL, true);
|
||||
}, EVENT_TELEPORT_VISUAL);
|
||||
}
|
||||
|
||||
uint16 timer;
|
||||
@@ -951,7 +954,10 @@ struct npc_scion_of_eternity : public ScriptedAI
|
||||
npc_scion_of_eternity(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
me->CastSpell(me, SPELL_TELEPORT_VISUAL, true);
|
||||
ScheduleUniqueTimedEvent(0s, [&]
|
||||
{
|
||||
DoCastSelf(SPELL_TELEPORT_VISUAL, true);
|
||||
}, EVENT_TELEPORT_VISUAL);
|
||||
ScheduleTimedEvent(20s, 25s, [&]
|
||||
{
|
||||
GuidVector guids;
|
||||
@@ -993,6 +999,7 @@ struct npc_hover_disk : public VehicleAI
|
||||
npc_hover_disk(Creature* creature) : VehicleAI(creature)
|
||||
{
|
||||
events.Reset();
|
||||
me->SetAnimTier(AnimTier::Fly);
|
||||
}
|
||||
|
||||
EventMap events;
|
||||
@@ -1002,6 +1009,7 @@ struct npc_hover_disk : public VehicleAI
|
||||
events.Reset();
|
||||
if (!who)
|
||||
return;
|
||||
|
||||
if (apply)
|
||||
{
|
||||
if (who->IsPlayer())
|
||||
@@ -1034,6 +1042,9 @@ struct npc_hover_disk : public VehicleAI
|
||||
me->SetDisableGravity(false);
|
||||
me->SetCanFly(false);
|
||||
me->GetMotionMaster()->MoveLand(0, me->GetPositionX(), me->GetPositionY(), 267.24f, 10.0f);
|
||||
me->SetImmuneToNPC(true);
|
||||
me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->SetFaction(FACTION_FRIENDLY);
|
||||
|
||||
if (who->IsPlayer())
|
||||
{
|
||||
@@ -1152,7 +1163,10 @@ struct npc_alexstrasza : public ScriptedAI
|
||||
|
||||
struct npc_eoe_wyrmrest_skytalon : public VehicleAI
|
||||
{
|
||||
npc_eoe_wyrmrest_skytalon(Creature* creature) : VehicleAI(creature) { }
|
||||
npc_eoe_wyrmrest_skytalon(Creature* creature) : VehicleAI(creature)
|
||||
{
|
||||
me->SetAnimTier(AnimTier::Fly);
|
||||
}
|
||||
|
||||
void IsSummonedBy(WorldObject* summoner) override
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ enum eSpells
|
||||
SPELL_POWER_SPARK_GROUND_BUFF = 55852,
|
||||
SPELL_POWER_SPARK_MALYGOS_BUFF = 56152,
|
||||
|
||||
SPELL_TELEPORT_VISUAL = 52096,
|
||||
SPELL_TELEPORT_VISUAL = 41232,
|
||||
|
||||
SPELL_SCION_ARCANE_BARRAGE = 56397,
|
||||
SPELL_ARCANE_SHOCK = 57058,
|
||||
|
||||
Reference in New Issue
Block a user