* Remove typeid check and fix cast target for Improved Fear. Patch by jesper.vortex.

* Closes #946.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-03-18 14:57:39 +01:00
parent 1a6f216e91
commit 793a226692
+1 -4
View File
@@ -1099,8 +1099,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
}
// Improved Fear
else if (GetSpellProto()->SpellFamilyFlags[1] & 0x00000400)
{
if (caster->GetTypeId() == TYPEID_UNIT)
{
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_WARLOCK, 98, 0))
{
@@ -1113,8 +1111,7 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Improved Fear (%d) found", aurEff->GetId());
}
if (spellId)
caster->CastSpell(caster, spellId, true);
}
caster->CastSpell(target, spellId, true);
}
}
switch(GetId())