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
This commit is contained in:
Krudor
2016-12-12 23:13:20 +01:00
committed by Shauren
parent 89320f2bc5
commit a346fd2baf

View File

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