From 5f45885a15358b8c52ceaeb97637b0f52c1cc770 Mon Sep 17 00:00:00 2001 From: Traesh Date: Sun, 19 Aug 2018 15:59:52 +0200 Subject: [PATCH] Spells/Rogue Fix crash --- src/server/scripts/Spells/spell_rogue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index 70cb7ae62b2c0..8600a14e7cca9 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -2586,6 +2586,9 @@ class spell_rog_weaponmaster : public SpellScriptLoader if (!roll_chance_i(6)) return false; + if (!eventInfo.GetDamageInfo()) + return false; + SpellNonMeleeDamage damageLog(caster, target, triggerSpell->Id, triggerSpell->GetSpellXSpellVisualId(), triggerSpell->SchoolMask); damageLog.damage = eventInfo.GetDamageInfo()->GetDamage(); damageLog.cleanDamage = damageLog.damage;