mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user