mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-13 07:23:44 +00:00
fix(Scripts/Steamvault): Rework Kalithresh (#15883)
This commit is contained in:
@@ -208,7 +208,10 @@ void InstanceScript::UpdateMinionState(Creature* minion, EncounterState state)
|
||||
minion->Respawn();
|
||||
else
|
||||
{
|
||||
minion->AI()->DoZoneInCombat(nullptr, 100.0f);
|
||||
if (minion->GetReactState() == REACT_AGGRESSIVE)
|
||||
{
|
||||
minion->AI()->DoZoneInCombat(nullptr, 100.0f);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -362,6 +365,20 @@ void InstanceScript::StorePersistentData(uint32 index, uint32 data)
|
||||
persistentData[index] = data;
|
||||
}
|
||||
|
||||
void InstanceScript::DoForAllMinions(uint32 id, std::function<void(Creature*)> exec)
|
||||
{
|
||||
BossInfo* bossInfo = &bosses[id];
|
||||
MinionSet listCopy = bossInfo->minion;
|
||||
|
||||
for (auto const& minion : listCopy)
|
||||
{
|
||||
if (minion)
|
||||
{
|
||||
exec(minion);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceScript::Load(const char* data)
|
||||
{
|
||||
if (!data)
|
||||
|
||||
Reference in New Issue
Block a user