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:
hondacrx
2021-11-07 21:12:53 -05:00
parent f60ff57739
commit 7f668d03b3
6 changed files with 98 additions and 58 deletions
+2 -4
View File
@@ -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());