* Remove typeid check and fix cast target for Improved Fear. Patch by jesper.vortex.
* Closes #946. --HG-- branch : trunk
This commit is contained in:
+9
-12
@@ -1100,21 +1100,18 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
|
|||||||
// Improved Fear
|
// Improved Fear
|
||||||
else if (GetSpellProto()->SpellFamilyFlags[1] & 0x00000400)
|
else if (GetSpellProto()->SpellFamilyFlags[1] & 0x00000400)
|
||||||
{
|
{
|
||||||
if (caster->GetTypeId() == TYPEID_UNIT)
|
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_WARLOCK, 98, 0))
|
||||||
{
|
{
|
||||||
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_WARLOCK, 98, 0))
|
uint32 spellId = 0;
|
||||||
|
switch (aurEff->GetId())
|
||||||
{
|
{
|
||||||
uint32 spellId = 0;
|
case 53759: spellId = 60947; break;
|
||||||
switch (aurEff->GetId())
|
case 53754: spellId = 60946; break;
|
||||||
{
|
default:
|
||||||
case 53759: spellId = 60947; break;
|
sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Improved Fear (%d) found", aurEff->GetId());
|
||||||
case 53754: spellId = 60946; break;
|
|
||||||
default:
|
|
||||||
sLog.outError("Aura::HandleAuraSpecificMods: Unknown rank of Improved Fear (%d) found", aurEff->GetId());
|
|
||||||
}
|
|
||||||
if (spellId)
|
|
||||||
caster->CastSpell(caster, spellId, true);
|
|
||||||
}
|
}
|
||||||
|
if (spellId)
|
||||||
|
caster->CastSpell(target, spellId, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch(GetId())
|
switch(GetId())
|
||||||
|
|||||||
Reference in New Issue
Block a user