aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorDoctorKraft <DoctorKraft@users.noreply.github.com>2018-03-05 19:20:42 +0100
committerShauren <shauren.trinity@gmail.com>2018-03-05 19:20:42 +0100
commit58930d273fca5b7cd92f0f5ff987890d50373c59 (patch)
tree12942f2d2140f56d6d402e755fb27704bf91d3a6 /src/server/scripts
parentf411b7a90e4900c9e2df7c1e0c7a301360408cec (diff)
Core/Players: Fixed mounts using MOUNT_FLAG_SELF_MOUNT flag (#21558)
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_generic.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 9aae5a665fb..c046c97d023 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -2892,10 +2892,8 @@ class spell_gen_replenishment : public SpellScriptLoader
}
};
-
enum RunningWildMountIds
{
- RUNNING_WILD_MODEL = 73200,
SPELL_ALTERED_FORM = 97709
};
@@ -2910,7 +2908,7 @@ class spell_gen_running_wild : public SpellScriptLoader
bool Validate(SpellInfo const* /*spell*/) override
{
- if (!sCreatureDisplayInfoStore.LookupEntry(RUNNING_WILD_MODEL))
+ if (!sCreatureDisplayInfoStore.LookupEntry(DISPLAYID_HIDDEN_MOUNT))
return false;
return true;
}
@@ -2920,7 +2918,7 @@ class spell_gen_running_wild : public SpellScriptLoader
Unit* target = GetTarget();
PreventDefaultAction();
- target->Mount(RUNNING_WILD_MODEL, 0, 0);
+ target->Mount(DISPLAYID_HIDDEN_MOUNT, 0, 0);
// cast speed aura
if (MountCapabilityEntry const* mountCapability = sMountCapabilityStore.LookupEntry(aurEff->GetAmount()))