mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Scripts/HellfireRamparts: Remove the spawning of the Reinforced Fel Iron chest from scripts
Updates #13747
This commit is contained in:
@@ -434,13 +434,6 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (!lootSpawned)
|
||||
{
|
||||
me->SummonGameObject(DUNGEON_MODE(GO_FEL_IRON_CHEST_NORMAL, GO_FEL_IRON_CHECT_HEROIC), VazrudenMiddle[0], VazrudenMiddle[1], VazrudenMiddle[2], 0, 0, 0, 0, 0, 0);
|
||||
me->SetLootRecipient(NULL); // don't think this is necessary..
|
||||
//me->Kill(me);
|
||||
lootSpawned = true;
|
||||
}
|
||||
check = 2000;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -43,7 +43,7 @@ enum CreatureIds
|
||||
enum GameobjectIds
|
||||
{
|
||||
GO_FEL_IRON_CHEST_NORMAL = 185168,
|
||||
GO_FEL_IRON_CHECT_HEROIC = 185169
|
||||
GO_FEL_IRON_CHEST_HEROIC = 185169
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,7 +36,6 @@ class instance_ramparts : public InstanceMapScript
|
||||
{
|
||||
instance_ramparts_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
{
|
||||
spawned = false;
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
}
|
||||
@@ -46,7 +45,7 @@ class instance_ramparts : public InstanceMapScript
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_FEL_IRON_CHEST_NORMAL:
|
||||
case GO_FEL_IRON_CHECT_HEROIC:
|
||||
case GO_FEL_IRON_CHEST_HEROIC:
|
||||
felIronChestGUID = go->GetGUID();
|
||||
break;
|
||||
}
|
||||
@@ -61,11 +60,11 @@ class instance_ramparts : public InstanceMapScript
|
||||
{
|
||||
case DATA_VAZRUDEN:
|
||||
case DATA_NAZAN:
|
||||
if (GetBossState(DATA_VAZRUDEN) == DONE && GetBossState(DATA_NAZAN) == DONE && !spawned)
|
||||
{
|
||||
DoRespawnGameObject(felIronChestGUID, HOUR*IN_MILLISECONDS);
|
||||
spawned = true;
|
||||
}
|
||||
if (GetBossState(DATA_VAZRUDEN) == DONE && GetBossState(DATA_NAZAN) == DONE)
|
||||
if (GameObject* chest = instance->GetGameObject(felIronChestGUID))
|
||||
chest->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
@@ -73,7 +72,6 @@ class instance_ramparts : public InstanceMapScript
|
||||
|
||||
protected:
|
||||
ObjectGuid felIronChestGUID;
|
||||
bool spawned;
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const override
|
||||
|
||||
Reference in New Issue
Block a user