*Script effect for Big Blizzard Bear - by simon.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-05 16:00:36 +02:00
parent 26d10f0fb6
commit 037fa6eae1
2 changed files with 22 additions and 0 deletions
+18
View File
@@ -5085,6 +5085,24 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
}
return;
case 58983:
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Prevent stacking of mounts
unitTarget->RemoveAurasByType(SPELL_AURA_MOUNTED);
// Triggered spell id dependent of riding skill
if(uint16 skillval = ((Player*)unitTarget)->GetSkillValue(SKILL_RIDING))
{
if (skillval >= 150)
unitTarget->CastSpell(unitTarget, 58999, true);
else
unitTarget->CastSpell(unitTarget, 58997, true);
}
return;
}
case 59317: // Teleporting
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;