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:
1 parent
824e0356a8
commit
0762791754
4 files changed
+35
-27
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user