summaryrefslogtreecommitdiff
path: root/src/scripts/Spells/spell_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/Spells/spell_item.cpp')
-rw-r--r--src/scripts/Spells/spell_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/Spells/spell_item.cpp b/src/scripts/Spells/spell_item.cpp
index 289d3fe5cb..2748f170a7 100644
--- a/src/scripts/Spells/spell_item.cpp
+++ b/src/scripts/Spells/spell_item.cpp
@@ -1255,7 +1255,7 @@ class spell_item_summon_or_dismiss : public SpellScriptLoader
{
for (Unit::ControlSet::iterator itr = GetCaster()->m_Controlled.begin(); itr != GetCaster()->m_Controlled.end(); ++itr)
{
- if ((*itr)->GetEntry() == GetSpellInfo()->Effects[effIndex].MiscValue)
+ if (GetSpellInfo()->Effects[effIndex].MiscValue >= 0 && (*itr)->GetEntry() == uint32(GetSpellInfo()->Effects[effIndex].MiscValue))
{
(*itr)->ToTempSummon()->UnSummon();
PreventHitDefaultEffect(effIndex);