mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Scripts/Ulduar: Fix some Flame Leviathan issues
Fix some Flame Leviathan issues: - Fix boss evading all the time due to bad Doors check - Opened "Lightning Door" to other bosses only after boss dies - Eject players from the vehicles when boss dies, make them untargetable and despawn them after 5 minutes (adjust the time to the blizzlike time of choice)
This commit is contained in:
@@ -191,6 +191,12 @@ void InstanceScript::UpdateDoorState(GameObject* door)
|
||||
door->SetGoState(open ? GO_STATE_ACTIVE : GO_STATE_READY);
|
||||
}
|
||||
|
||||
BossInfo* InstanceScript::GetBossInfo(uint32 id)
|
||||
{
|
||||
ASSERT(id < bosses.size());
|
||||
return &bosses[id];
|
||||
}
|
||||
|
||||
void InstanceScript::AddObject(Creature* obj, bool add)
|
||||
{
|
||||
ObjectInfoMap::const_iterator j = _creatureInfo.find(obj->GetEntry());
|
||||
|
||||
Reference in New Issue
Block a user