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)
This commit is contained in:
@@ -5900,11 +5900,11 @@ namespace Game.Spells
|
|||||||
SpellInfo triggeredSpellInfo = Global.SpellMgr.GetSpellInfo(triggerSpellId, GetBase().GetCastDifficulty());
|
SpellInfo triggeredSpellInfo = Global.SpellMgr.GetSpellInfo(triggerSpellId, GetBase().GetCastDifficulty());
|
||||||
if (triggeredSpellInfo != null)
|
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);
|
triggerCaster.CastSpell(triggerTarget, triggeredSpellInfo, true, null, this);
|
||||||
}
|
}
|
||||||
else
|
else if (triggerSpellId != 0 && GetAuraType() != AuraType.Dummy)
|
||||||
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());
|
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)
|
void HandleProcTriggerSpellWithValueAuraProc(AuraApplication aurApp, ProcEventInfo eventInfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user