From db28ae55c9455848ecda593bec525291cb955e04 Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 31 Jul 2011 11:13:15 +0200 Subject: Core/Spells: Add missing braces to possession spell check - fixes problems with being unable to cast target's spells while possesing. --- src/server/game/Entities/Unit/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3