aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-07-31 11:13:15 +0200
committerQAston <qaston@gmail.com>2011-07-31 11:13:41 +0200
commitdb28ae55c9455848ecda593bec525291cb955e04 (patch)
tree075eb57bd9d1b6ae5c4021a4a36f358ddb1306ab
parent6cfb87639cbceee3a182a0431d8b789193228802 (diff)
Core/Spells: Add missing braces to possession spell check - fixes problems with being unable to cast target's spells while possesing.
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 57b2c6d4d8e..0627caee97e 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -13877,7 +13877,7 @@ void CharmInfo::InitPossessCreateSpells()
{
uint32 spellId = m_unit->ToCreature()->m_spells[i];
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
- if (spellInfo && !spellInfo->Attributes & SPELL_ATTR0_CASTABLE_WHILE_DEAD)
+ if (spellInfo && !(spellInfo->Attributes & SPELL_ATTR0_CASTABLE_WHILE_DEAD))
{
if (spellInfo->IsPassive())
m_unit->CastSpell(m_unit, spellInfo, true);