*Implement spell 47977

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-02-14 17:17:03 +01:00
parent 29f3d67fb8
commit 738a96f9e2
+16
View File
@@ -4994,6 +4994,22 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
break;
}
case 47977: // Magic Broom
{
if(!unitTarget)
return;
if(unitTarget)
{
switch(((Player*)unitTarget)->GetBaseSkillValue(762))
{
case 75: unitTarget->CastSpell(unitTarget, 42680, true); break;;
case 150: case 225: case 300: unitTarget->CastSpell(unitTarget, 42683, true); break;
default: break;
}
}
break;
}
}
if(!unitTarget || !unitTarget->isAlive()) // can we remove this check?