mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/TempleOfAhnQiraj): Viscidus (#12956)
This commit is contained in:
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user