Scripts/BoT: update the enslaved dragons entries uppon encounter startt and use the proper entries

This commit is contained in:
Ovahlord
2018-04-17 15:28:41 +02:00
parent 36b3dcff71
commit 7156eca93b
3 changed files with 34 additions and 14 deletions

View File

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

View File

@@ -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);
}
}
}