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:
@@ -148,6 +148,8 @@ namespace Game.Entities
|
||||
PushQuests();
|
||||
|
||||
UpdateCriteria(CriteriaType.EnterTopLevelArea, newArea);
|
||||
|
||||
UpdateMountCapability();
|
||||
}
|
||||
|
||||
public void UpdateZone(uint newZone, uint newArea)
|
||||
|
||||
@@ -1069,7 +1069,11 @@ namespace Game.Entities
|
||||
LearnSkillRewardedSpells(id, newVal);
|
||||
// if skill value is going up, update enchantments after setting the new value
|
||||
if (newVal > currVal)
|
||||
{
|
||||
UpdateSkillEnchantments(id, currVal, (ushort)newVal);
|
||||
if (id == (uint)SkillType.Riding)
|
||||
UpdateMountCapability();
|
||||
}
|
||||
|
||||
UpdateCriteria(CriteriaType.SkillRaised, id);
|
||||
UpdateCriteria(CriteriaType.AchieveSkillStep, id);
|
||||
|
||||
Reference in New Issue
Block a user