Core/Auras: Mount speed auras are now properly selected when teleporting (dungeon enter/exit, regular teleport, ...)
Port From (https://github.com/TrinityCore/TrinityCore/commit/3010f2ca5dea532c851d5472157bbfdf0531e0d0)
This commit is contained in:
@@ -330,8 +330,6 @@ namespace Scripts.Spells.Generic
|
||||
//ServiceUniform
|
||||
public const uint GoblinMale = 31002;
|
||||
public const uint GoblinFemale = 31003;
|
||||
|
||||
public const uint HiddenMount = 73200;
|
||||
}
|
||||
|
||||
struct TextIds
|
||||
@@ -2586,7 +2584,7 @@ namespace Scripts.Spells.Generic
|
||||
{
|
||||
public override bool Validate(SpellInfo spellInfo)
|
||||
{
|
||||
if (!CliDB.CreatureDisplayInfoStorage.ContainsKey(ModelIds.HiddenMount))
|
||||
if (!CliDB.CreatureDisplayInfoStorage.ContainsKey(SharedConst.DisplayIdHiddenMount))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -2596,7 +2594,7 @@ namespace Scripts.Spells.Generic
|
||||
Unit target = GetTarget();
|
||||
PreventDefaultAction();
|
||||
|
||||
target.Mount(ModelIds.HiddenMount, 0, 0);
|
||||
target.Mount(SharedConst.DisplayIdHiddenMount, 0, 0);
|
||||
|
||||
// cast speed aura
|
||||
MountCapabilityRecord mountCapability = CliDB.MountCapabilityStorage.LookupByKey(aurEff.GetAmount());
|
||||
|
||||
Reference in New Issue
Block a user