mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Scripts/Icecrown Citadel: Fixed typo in Sindragosa spawning condition
This commit is contained in:
@@ -115,6 +115,7 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
SindragosaGUID = 0;
|
||||
SpinestalkerGUID = 0;
|
||||
RimefangGUID = 0;
|
||||
TheLichKingGUID = 0;
|
||||
FrostwyrmCount = 0;
|
||||
SpinestalkerTrashCount = 0;
|
||||
RimefangTrashCount = 0;
|
||||
@@ -267,6 +268,9 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
if (!creature->isDead())
|
||||
++FrostwyrmCount;
|
||||
break;
|
||||
case NPC_THE_LICH_KING:
|
||||
TheLichKingGUID = creature->GetGUID();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -543,6 +547,8 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
return SpinestalkerGUID;
|
||||
case DATA_RIMEFANG:
|
||||
return RimefangGUID;
|
||||
case DATA_THE_LICH_KING:
|
||||
return TheLichKingGUID;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -663,6 +669,17 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
}
|
||||
break;
|
||||
case DATA_THE_LICH_KING:
|
||||
if (instance->IsHeroic())
|
||||
{
|
||||
if (state == FAIL && HeroicAttempts)
|
||||
{
|
||||
--HeroicAttempts;
|
||||
DoUpdateWorldState(WORLDSTATE_ATTEMPTS_REMAINING, HeroicAttempts);
|
||||
if (!HeroicAttempts)
|
||||
if (Creature* sindra = instance->GetCreature(SindragosaGUID))
|
||||
sindra->DespawnOrUnsummon();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -695,7 +712,7 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
if (instance->IsHeroic() && !HeroicAttempts)
|
||||
return;
|
||||
|
||||
if (GetBossState(DATA_SINDRAGOSA) != DONE)
|
||||
if (GetBossState(DATA_SINDRAGOSA) == DONE)
|
||||
return;
|
||||
|
||||
switch (data)
|
||||
@@ -1101,6 +1118,7 @@ class instance_icecrown_citadel : public InstanceMapScript
|
||||
uint64 SindragosaGUID;
|
||||
uint64 SpinestalkerGUID;
|
||||
uint64 RimefangGUID;
|
||||
uint64 TheLichKingGUID;
|
||||
uint32 TeamInInstance;
|
||||
uint32 BloodQuickeningTimer;
|
||||
uint32 ColdflameJetsState;
|
||||
|
||||
Reference in New Issue
Block a user