Code
diff -r d9a715ea9fd9 src/game/SpellAuras.cpp
--- a/src/game/SpellAuras.cpp Fri Mar 05 14:43:19 2010 -0300
+++ b/src/game/SpellAuras.cpp Sat Mar 06 15:26:39 2010 +0100
@@ -1100,7 +1100,7 @@
// Improved Fear
else if (GetSpellProto()->SpellFamilyFlags[1] & 0x00000400)
{
- if (caster->GetTypeId() == TYPEID_UNIT)
+ if (caster->GetTypeId() == TYPEID_PLAYER)
{
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_WARLOCK, 98, 0))
{
@@ -1113,7 +1113,7 @@
sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Improved Fear (%d) found", aurEff->GetId());
}
if (spellId)
- caster->CastSpell(caster, spellId, true);
+ target->CastSpell(target, spellId, true);
}
}
}