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:41 +02:00
parent 6cfb87639c
commit db28ae55c9
+1 -1
View File
@@ -13877,7 +13877,7 @@ void CharmInfo::InitPossessCreateSpells()
{ {
uint32 spellId = m_unit->ToCreature()->m_spells[i]; uint32 spellId = m_unit->ToCreature()->m_spells[i];
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId); 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()) if (spellInfo->IsPassive())
m_unit->CastSpell(m_unit, spellInfo, true); m_unit->CastSpell(m_unit, spellInfo, true);