From 045dec19fa0322840d2e0e8ff4b1cda88c87ee5c Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 28 Jul 2011 13:21:31 +0200 Subject: CoreSpells: Typofixes: fix area auras autocast and usage of items in combat. --- src/server/game/Entities/Unit/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/Entities/Unit') diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 808a2da3a0d..a7d84a4187f 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