aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-05 16:00:36 +0200
committerQAston <none@none>2009-08-05 16:00:36 +0200
commit037fa6eae1e88c930ccb123668e552f191e87559 (patch)
tree8674dd5bd5753d2069e16a6da725d336b582a365 /src
parent26d10f0fb6efdccb791cc93bed620c2c4858ae5f (diff)
*Script effect for Big Blizzard Bear - by simon.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b3ee8baa7e8..e35b7ea0ff3 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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;