aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSouler <soulerhyd@gmail.com>2012-02-04 18:51:09 +0100
committerSouler <soulerhyd@gmail.com>2012-02-04 18:51:09 +0100
commite13eec514122299e31f718be8c47021409f12096 (patch)
treed5ad4782d05a0ef5c06949bb4527c173e2199394 /src
parent229d4119e887fa6079a6e0b093860e11b5facb63 (diff)
Scripts/Spells: Change shapeshift check when players mounting on tournament mounts.
This should solve the problem with warriors and priests on shadowform not being able to mount up.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_generic.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 3d552901295..6fc93733a85 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -2041,11 +2041,8 @@ class spell_gen_summon_tournament_mount : public SpellScriptLoader
SpellCastResult CheckIfLanceEquiped()
{
- if (GetCaster()->HasAuraType(SPELL_AURA_MOD_SHAPESHIFT))
- {
- SetCustomCastResultMessage(SPELL_CUSTOM_ERROR_CANT_MOUNT_WITH_SHAPESHIFT);
- return SPELL_FAILED_CUSTOM_ERROR;
- }
+ if (GetCaster()->IsInDisallowedMountForm())
+ GetCaster()->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
if (!GetCaster()->HasAura(SPELL_LANCE_EQUIPPED))
{