Skip to content

Commit

Permalink
Spells/Rogue Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Traesh committed Aug 19, 2018
1 parent c56d85d commit 5f45885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/scripts/Spells/spell_rogue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f45885

Please sign in to comment.