mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Scripts/BoT: update the enslaved dragons entries uppon encounter startt and use the proper entries
This commit is contained in:
@@ -79,9 +79,13 @@ enum BoTCreatures
|
||||
/*Halfus Wyrmbreaker*/
|
||||
NPC_PROTO_BEHEMOTH = 44687,
|
||||
NPC_NETHER_SCION = 44645,
|
||||
NPC_NETHER_SCION_ENCOUNTER = 44828,
|
||||
NPC_SLATE_DRAGON = 44652,
|
||||
NPC_SLATE_DRAGON_ENCOUNTER = 44829,
|
||||
NPC_STORM_RIDER = 44650,
|
||||
NPC_STORM_RIDER_ENCOUNTER = 44826,
|
||||
NPC_TIME_WARDEN = 44797,
|
||||
NPC_TIME_WARDEN_ENCOUNTER = 44653,
|
||||
NPC_ORPHANED_EMERALD_WELP = 44641,
|
||||
NPC_SPIKE = 44765,
|
||||
|
||||
|
||||
@@ -159,10 +159,29 @@ class instance_bastion_of_twilight : public InstanceMapScript
|
||||
&& creature->GetEntry() != _unresponsiveDragonEntryFirst
|
||||
&& creature->GetEntry() != _unresponsiveDragonEntrySecond)
|
||||
{
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_NETHER_SCION:
|
||||
creature->UpdateEntry(NPC_NETHER_SCION_ENCOUNTER);
|
||||
break;
|
||||
case NPC_SLATE_DRAGON:
|
||||
creature->UpdateEntry(NPC_SLATE_DRAGON_ENCOUNTER);
|
||||
break;
|
||||
case NPC_STORM_RIDER:
|
||||
creature->UpdateEntry(NPC_STORM_RIDER_ENCOUNTER);
|
||||
break;
|
||||
case NPC_TIME_WARDEN:
|
||||
creature->UpdateEntry(NPC_TIME_WARDEN_ENCOUNTER);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
|
||||
if (creature->GetEntry() != NPC_ORPHANED_EMERALD_WELP)
|
||||
creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user