Core/Spells: Add missing braces to possession spell check - fixes problems with being unable to cast target's spells while possesing.

This commit is contained in:
QAston
2011-07-31 11:13:15 +02:00
parent 6cfb87639c
commit db28ae55c9

View File

@@ -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);