aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-10-12 22:58:29 -0300
committerjoschiwald <joschiwald.trinity@gmail.com>2017-09-06 13:08:54 +0200
commita6c0bf00999a624f1e13f474f9ec1f935661916c (patch)
tree1d5ba32e5c5bb76f62a612b07a8311f513cd5dd3
parent08aecc7cb91896a1760d4b8a319feb070bf1c1cc (diff)
Core/Scripts: Fix runtime error
(cherry picked from commit 4a1f6eb3b177d50f22df6295d712b85b81a95581)
-rw-r--r--src/server/scripts/Spells/spell_item.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 0b9e79f046e..d212683754b 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -1881,6 +1881,8 @@ class spell_item_shadows_fate : public SpellScriptLoader
void HandleProc(ProcEventInfo& procInfo)
{
+ PreventDefaultAction();
+
Unit* caster = procInfo.GetActor();
Unit* target = GetCaster();
if (!caster || !target)