Core/AuraScripts: Fix runtime error messages appearing in aura scripts when one hook is called from inside of another one.

This commit is contained in:
QAston committed 2011-05-26 16:12:33 +02:00
1 parent 824e0356a8
commit 0762791754
4 files changed
+35 -27

No files matched your search

+1 -1
View File
@@ -1297,7 +1297,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
break;
case SPELLFAMILY_WARLOCK:
// Life Tap
if (m_spellInfo->SpellFamilyFlags[0] & SPELLFAMILYFLAG_WARLOCK_LIFETAP)
if ((m_spellInfo->SpellFamilyFlags[0] & SPELLFAMILYFLAG_WARLOCK_LIFETAP) && m_caster->ToPlayer())
{
float spFactor = 0.0f;
switch (m_spellInfo->Id)