Core/Auras: Fixed crash happening when a periodic aura tick triggers SPELL_AURA_SPLIT_DAMAGE_PCT

Port From (https://github.com/TrinityCore/TrinityCore/commit/3a50bc50a2a3898013404eb2319508521002984f)
This commit is contained in:
hondacrx
2024-02-03 11:28:50 -05:00
parent fdec5064b8
commit ee7b89560e
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2149,7 +2149,7 @@ namespace Game.Entities
{
SpellNonMeleeDamageLog packet = new();
packet.Me = log.target.GetGUID();
packet.CasterGUID = log.attacker.GetGUID();
packet.CasterGUID = log.attacker?.GetGUID() ?? ObjectGuid.Empty;
packet.CastID = log.castId;
packet.SpellID = (int)(log.Spell != null ? log.Spell.Id : 0);
packet.Visual = log.SpellVisual;