fix(Core/TempleOfAhnQiraj): Viscidus (#12956)

This commit is contained in:
Angelo Venturini
2022-09-21 15:19:21 -03:00
committed by GitHub
parent d50dfdbee6
commit 337c308dd3
5 changed files with 283 additions and 108 deletions

View File

@@ -153,6 +153,22 @@ bool SummonList::IsAnyCreatureAlive() const
return false;
}
bool SummonList::IsAnyCreatureWithEntryAlive(uint32 entry) const
{
for (auto const& guid : storage_)
{
if (Creature* summon = ObjectAccessor::GetCreature(*me, guid))
{
if (summon->GetEntry() == entry && summon->IsAlive())
{
return true;
}
}
}
return false;
}
bool SummonList::IsAnyCreatureInCombat() const
{
for (auto const& guid : storage_)