Scripts/AreaTrigger: Fixed possible crash when spell is null for areatriggers on creation
Port From (https://github.com/TrinityCore/TrinityCore/commit/a78828c70755db229d6f9c47ff3e2a5859090658)
This commit is contained in:
@@ -151,7 +151,7 @@ namespace Game.Entities
|
||||
|
||||
SetScaleCurve(areaTriggerData.ModifyValue(m_areaTriggerData.ExtraScaleCurve), 1.0f);
|
||||
|
||||
if (caster != null)
|
||||
if (caster != null && spellInfo != null)
|
||||
{
|
||||
Player modOwner = caster.GetSpellModOwner();
|
||||
if (modOwner != null)
|
||||
|
||||
Reference in New Issue
Block a user