*Implement Script Effect of 48025

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-11 17:16:00 +01:00
parent f5fa3b71cf
commit 04fe9b2cc9

View File

@@ -4968,7 +4968,24 @@ void Spell::EffectScriptEffect(uint32 effIndex)
unitTarget->CastSpell(unitTarget, spellId, true);
break;
}
case 48025: // Headless Horseman's Mount
{
if(!unitTarget)
return;
if(unitTarget)
{
switch(((Player*)unitTarget)->GetBaseSkillValue(762))
{
case 75: unitTarget->CastSpell(unitTarget, 51621, true); break;;
case 150: unitTarget->CastSpell(unitTarget, 48024, true); break;
case 225: unitTarget->CastSpell(unitTarget, 51617, true); break;
case 300: unitTarget->CastSpell(unitTarget, 48023, true); break;
default: break;
}
}
break;
}
}
if(!unitTarget || !unitTarget->isAlive()) // can we remove this check?