From baa44cc4eeb079a3ed0d19bd7693390bd33954f7 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 21 Feb 2021 21:38:01 -0500 Subject: [PATCH] Core/Auras: Do not warn about nonexisting proc spells when spell id is 0 and aura is a dummy Port From (https://github.com/TrinityCore/TrinityCore/commit/411631743adb6438dc7690e5be3a1430080384ec) --- Source/Game/Spells/Auras/AuraEffect.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Game/Spells/Auras/AuraEffect.cs b/Source/Game/Spells/Auras/AuraEffect.cs index e26069386..f3577a88c 100644 --- a/Source/Game/Spells/Auras/AuraEffect.cs +++ b/Source/Game/Spells/Auras/AuraEffect.cs @@ -5900,11 +5900,11 @@ namespace Game.Spells SpellInfo triggeredSpellInfo = Global.SpellMgr.GetSpellInfo(triggerSpellId, GetBase().GetCastDifficulty()); if (triggeredSpellInfo != null) { - Log.outDebug(LogFilter.Spells, "AuraEffect.HandleProcTriggerSpellAuraProc: Triggering spell {0} from aura {1} proc", triggeredSpellInfo.Id, GetId()); + Log.outDebug(LogFilter.Spells, $"AuraEffect.HandleProcTriggerSpellAuraProc: Triggering spell {triggeredSpellInfo.Id} from aura {GetId()} proc"); triggerCaster.CastSpell(triggerTarget, triggeredSpellInfo, true, null, this); } - else - Log.outError(LogFilter.Spells, "AuraEffect.HandleProcTriggerSpellAuraProc: Could not trigger spell {0} from aura {1} proc, because the spell does not have an entry in Spell.dbc.", triggerSpellId, GetId()); + else if (triggerSpellId != 0 && GetAuraType() != AuraType.Dummy) + Log.outError(LogFilter.Spells, $"AuraEffect.HandleProcTriggerSpellAuraProc: Could not trigger spell {triggerSpellId} from aura {GetId()} proc, because the spell does not have an entry in Spell.dbc."); } void HandleProcTriggerSpellWithValueAuraProc(AuraApplication aurApp, ProcEventInfo eventInfo)