mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Scripts/ZulAman): Malacrass adds shouldnt change on wipes (#20894)
This commit is contained in:
@@ -253,10 +253,19 @@ struct boss_hexlord_malacrass : public BossAI
|
||||
|
||||
void SpawnAdds()
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ADD_COUNT; ++i)
|
||||
if (_creatureIndex.empty())
|
||||
{
|
||||
uint8 flip = urand(0, 1);
|
||||
me->SummonCreature(AddEntrySets[i][flip], AddPosition[i], TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
for (uint8 i = 0; i < MAX_ADD_COUNT; ++i)
|
||||
{
|
||||
uint8 flip = urand(0, 1);
|
||||
me->SummonCreature(AddEntrySets[i][flip], AddPosition[i], TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
_creatureIndex.push_back(flip);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ADD_COUNT; ++i)
|
||||
me->SummonCreature(AddEntrySets[i][_creatureIndex[i]], AddPosition[i], TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,6 +354,7 @@ struct boss_hexlord_malacrass : public BossAI
|
||||
private:
|
||||
uint8 _currentClass;
|
||||
std::chrono::milliseconds _classAbilityTimer;
|
||||
std::vector<uint8> _creatureIndex;
|
||||
};
|
||||
|
||||
struct boss_alyson_antille : public ScriptedAI
|
||||
|
||||
Reference in New Issue
Block a user