mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user