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.
This commit is contained in:
Souler
2012-02-04 18:51:09 +01:00
parent 229d4119e8
commit e13eec5141

View File

@@ -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))
{