From c355c2967c9ba80df1f6399790d51ff0dca2ce3c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 30 May 2022 13:04:57 -0400 Subject: [PATCH] Core/Conditions: Fixed conditions not working for area auras Port From (https://github.com/TrinityCore/TrinityCore/commit/7260fcb5c63ff1de397100cd46eda50ffc8b3025) --- Source/Game/Conditions/ConditionManager.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Source/Game/Conditions/ConditionManager.cs b/Source/Game/Conditions/ConditionManager.cs index 77f54ea0b..b17bb0258 100644 --- a/Source/Game/Conditions/ConditionManager.cs +++ b/Source/Game/Conditions/ConditionManager.cs @@ -1045,6 +1045,23 @@ namespace Game break; } + switch (spellEffectInfo.Effect) + { + case SpellEffectName.PersistentAreaAura: + case SpellEffectName.ApplyAreaAuraParty: + case SpellEffectName.ApplyAreaAuraRaid: + case SpellEffectName.ApplyAreaAuraFriend: + case SpellEffectName.ApplyAreaAuraEnemy: + case SpellEffectName.ApplyAreaAuraPet: + case SpellEffectName.ApplyAreaAuraOwner: + case SpellEffectName.ApplyAuraOnPet: + case SpellEffectName.ApplyAreaAuraSummons: + case SpellEffectName.ApplyAreaAuraPartyNonrandom: + continue; + default: + break; + } + Log.outError(LogFilter.Sql, "SourceEntry {0} SourceGroup {1} in `condition` table - spell {2} does not have implicit targets of types: _AREA_, _CONE_, _NEARBY_, _CHAIN_ for effect {3}, SourceGroup needs correction, ignoring.", cond.SourceEntry, origGroup, cond.SourceEntry, spellEffectInfo.EffectIndex); cond.SourceGroup &= ~(1u << (int)spellEffectInfo.EffectIndex); }