diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-09-15 20:02:17 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-09-15 20:02:17 +0200 |
commit | 3a84fddd1445822250f22e5439ee4a868a183a4f (patch) | |
tree | a4b71ddebd834d033f76e1bc1c9f0eb4f9c8b65a /src | |
parent | aa2ebfe7284148f165e739abfb2a8a6640274223 (diff) |
Scripts/Stratholme: Fix Ramstein the Gorger not spawning
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp index c050d54fef0..931be262be9 100644 --- a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp +++ b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp @@ -316,30 +316,6 @@ class instance_stratholme : public InstanceMapScript } break; case BOSS_RAMSTEIN_THE_GORGER: - if (state == IN_PROGRESS) - { - HandleGameObject(portGauntletGUID, false); - - uint32 count = abomnationGUID.size(); - for (GuidSet::const_iterator i = abomnationGUID.begin(); i != abomnationGUID.end(); ++i) - { - if (Creature* pAbom = instance->GetCreature(*i)) - if (!pAbom->IsAlive()) - --count; - } - - if (!count) - { - //a bit itchy, it should close the door after 10 secs, but it doesn't. skipping it for now. - //UpdateGoState(ziggurat4GUID, 0, true); - if (Creature* pBaron = instance->GetCreature(baronGUID)) - pBaron->SummonCreature(NPC_RAMSTEIN, 4032.84f, -3390.24f, 119.73f, 4.71f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 30min); - TC_LOG_DEBUG("scripts", "Instance Stratholme: Ramstein spawned."); - } - else - TC_LOG_DEBUG("scripts", "Instance Stratholme: {} Abomnation left to kill.", count); - } - if (state == NOT_STARTED) HandleGameObject(portGauntletGUID, true); @@ -424,6 +400,31 @@ class instance_stratholme : public InstanceMapScript break; } break; + case TYPE_RAMSTEIN: + if (data == IN_PROGRESS) + { + HandleGameObject(portGauntletGUID, false); + + uint32 count = abomnationGUID.size(); + for (GuidSet::const_iterator i = abomnationGUID.begin(); i != abomnationGUID.end(); ++i) + { + if (Creature* pAbom = instance->GetCreature(*i)) + if (!pAbom->IsAlive()) + --count; + } + + if (!count) + { + //a bit itchy, it should close the door after 10 secs, but it doesn't. skipping it for now. + //UpdateGoState(ziggurat4GUID, 0, true); + if (Creature* pBaron = instance->GetCreature(baronGUID)) + pBaron->SummonCreature(NPC_RAMSTEIN, 4032.84f, -3390.24f, 119.73f, 4.71f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 30min); + TC_LOG_DEBUG("scripts", "Instance Stratholme: Ramstein spawned."); + } + else + TC_LOG_DEBUG("scripts", "Instance Stratholme: {} Abomnation left to kill.", count); + } + break; case TYPE_SH_AELMAR: IsSilverHandDead[0] = (data) ? true : false; break; |