aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-08-29 23:26:47 +0200
committerQAston <qaston@gmail.com>2011-08-29 23:26:47 +0200
commit2f792412378075d08b3c508ff0b04ffcdf1bf246 (patch)
tree594a5399a71f0bb94e1a864bffbf78758f86e7c3 /src
parent4138b6e48e2cca171fecd709585dd3c047846074 (diff)
Core/Spells: check unattackable flag only for negative spells.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index dbeb7407031..04e90d2083b 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -1648,7 +1648,7 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, Unit const* target, b
}
// check UNIT_FLAG_NON_ATTACKABLE flag - a player can cast spells on his pet (or other controlled unit) though in any state
- if (target != caster && target->GetCharmerOrOwnerGUID() != caster->GetGUID())
+ if (!IsPositive() && target != caster && target->GetCharmerOrOwnerGUID() != caster->GetGUID())
{
// any unattackable target skipped
if (target->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))