mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Scripts/Naxxramas): Gluth - zombie chow locations (#27074)
This commit is contained in:
@@ -193,26 +193,16 @@ public:
|
||||
events.Repeat(RAID_MODE(110s, 90s));
|
||||
break;
|
||||
case EVENT_SUMMON_ZOMBIE:
|
||||
// \1 |0 /2 pos
|
||||
if (Is25ManRaid())
|
||||
{
|
||||
uint8 rand = urand(0, 2);
|
||||
for (int32 i = 0; i < RAID_MODE(1, 2); ++i)
|
||||
{
|
||||
// In 10 man raid, normal mode - should spawn only from mid gate
|
||||
// \1 |0 /2 pos
|
||||
// In 25 man raid - should spawn from all 3 gates
|
||||
if (me->GetMap()->GetDifficulty() == RAID_DIFFICULTY_10MAN_NORMAL)
|
||||
{
|
||||
me->SummonCreature(NPC_ZOMBIE_CHOW, zombiePos[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
me->SummonCreature(NPC_ZOMBIE_CHOW, zombiePos[urand(0, 2)]);
|
||||
}
|
||||
(rand == 2 ? rand = 0 : rand++);
|
||||
}
|
||||
events.Repeat(10s);
|
||||
break;
|
||||
me->SummonCreature(NPC_ZOMBIE_CHOW, zombiePos[1]);
|
||||
me->SummonCreature(NPC_ZOMBIE_CHOW, zombiePos[2]);
|
||||
}
|
||||
else
|
||||
me->SummonCreature(NPC_ZOMBIE_CHOW, zombiePos[0]);
|
||||
events.Repeat(10s);
|
||||
break;
|
||||
case EVENT_CAN_EAT_ZOMBIE:
|
||||
events.Repeat(1s);
|
||||
if (me->GetVictim()->GetEntry() == NPC_ZOMBIE_CHOW && me->IsWithinMeleeRange(me->GetVictim()))
|
||||
|
||||
Reference in New Issue
Block a user