mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +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_)
|
||||
|
||||
@@ -91,6 +91,7 @@ public:
|
||||
void DespawnEntry(uint32 entry);
|
||||
void DespawnAll();
|
||||
bool IsAnyCreatureAlive() const;
|
||||
bool IsAnyCreatureWithEntryAlive(uint32 entry) const;
|
||||
bool IsAnyCreatureInCombat() const;
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user