aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrudor <erikstrandberg93@hotmail.com>2016-12-12 23:13:20 +0100
committerShauren <shauren.trinity@gmail.com>2016-12-12 23:13:20 +0100
commita346fd2baf25bbc3be85f8255f0c5a7dd58beac7 (patch)
tree25c877514a12b1a8c5ee30afc9758771b5bc7bea /src
parent89320f2bc5742ca4702f3130ef2c78cac2304b8d (diff)
Core/Spells: Fix running wild mount spell (#18445)
Worgens no longer mount another white worgen models shoulder instead of dropping down on all four Closes #18363
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_generic.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 1ac39fb704f..62319b8888a 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -2883,8 +2883,7 @@ class spell_gen_replenishment : public SpellScriptLoader
enum RunningWildMountIds
{
- RUNNING_WILD_MODEL_MALE = 29422,
- RUNNING_WILD_MODEL_FEMALE = 29423,
+ RUNNING_WILD_MODEL = 73200,
SPELL_ALTERED_FORM = 97709
};
@@ -2899,9 +2898,7 @@ class spell_gen_running_wild : public SpellScriptLoader
bool Validate(SpellInfo const* /*spell*/) override
{
- if (!sCreatureDisplayInfoStore.LookupEntry(RUNNING_WILD_MODEL_MALE))
- return false;
- if (!sCreatureDisplayInfoStore.LookupEntry(RUNNING_WILD_MODEL_FEMALE))
+ if (!sCreatureDisplayInfoStore.LookupEntry(RUNNING_WILD_MODEL))
return false;
return true;
}
@@ -2911,7 +2908,7 @@ class spell_gen_running_wild : public SpellScriptLoader
Unit* target = GetTarget();
PreventDefaultAction();
- target->Mount(target->getGender() == GENDER_FEMALE ? RUNNING_WILD_MODEL_FEMALE : RUNNING_WILD_MODEL_MALE, 0, 0);
+ target->Mount(RUNNING_WILD_MODEL, 0, 0);
// cast speed aura
if (MountCapabilityEntry const* mountCapability = sMountCapabilityStore.LookupEntry(aurEff->GetAmount()))