aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-01-20 21:10:38 +0100
committerQAston <none@none>2009-01-20 21:10:38 +0100
commited15b99ee95cd45346e140eaf99ac5b94cfbabe8 (patch)
tree66567ef22bf6a8d149d028a467a0f75ce7ee126d /src/game/Spell.cpp
parent15403f0a8fb9c4980c7d5b29412c5427eda59482 (diff)
*Fix devour magic cast on enemy.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 989aa37bc5c..7dc138dcff4 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3440,7 +3440,8 @@ uint8 Spell::CanCast(bool strict)
// check correctness positive/negative cast target (pet cast real check and cheating check)
if(IsPositiveSpell(m_spellInfo->Id))
{
- if(m_caster->IsHostileTo(target))
+ //dispel positivity is dependant on target, don't check it
+ if(m_caster->IsHostileTo(target) && !IsDispel(m_spellInfo))
return SPELL_FAILED_BAD_TARGETS;
}
else