mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
feat(Core/Unit): Optimize AuraEffectList container (#22584)
This commit is contained in:
@@ -1944,8 +1944,8 @@ bool WorldObject::CanDetectInvisibilityOf(WorldObject const* obj) const
|
||||
bool isPermInvisibleCreature = false;
|
||||
if (Creature const* baseObj = ToCreature())
|
||||
{
|
||||
auto auraEffects = baseObj->GetAuraEffectsByType(SPELL_AURA_MOD_INVISIBILITY);
|
||||
for (auto const effect : auraEffects)
|
||||
Unit::AuraEffectList const& auraEffects = baseObj->GetAuraEffectsByType(SPELL_AURA_MOD_INVISIBILITY);
|
||||
for (AuraEffect* const effect : auraEffects)
|
||||
{
|
||||
if (SpellInfo const* spell = effect->GetSpellInfo())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user