From b86d2c59f1dfd4f4d48bc0f28fb17d6ee24c44ae Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Mon, 16 Jun 2025 16:43:42 -0400 Subject: [PATCH] Core/Players: Removed old unneccessary death knight and demon hunter riding workaround Port From (https://github.com/TrinityCore/TrinityCore/commit/44b51616a5d6c005e33899aa5e91319965e6d9dc) --- Source/Framework/Constants/PlayerConst.cs | 2 -- Source/Game/Entities/Player/Player.Spells.cs | 9 --------- 2 files changed, 11 deletions(-) diff --git a/Source/Framework/Constants/PlayerConst.cs b/Source/Framework/Constants/PlayerConst.cs index f57a64569..0d43e9c0e 100644 --- a/Source/Framework/Constants/PlayerConst.cs +++ b/Source/Framework/Constants/PlayerConst.cs @@ -63,8 +63,6 @@ namespace Framework.Constants public const uint WarmodeEnlistedSpellOutside = 269083; public const uint SpellExperienceEliminated = 206662; - public const uint SpellApprenticeRiding = 33389; - public const uint SpellJourneymanRiding = 33391; public const uint CurrencyMaxCapAncientMana = 2000; diff --git a/Source/Game/Entities/Player/Player.Spells.cs b/Source/Game/Entities/Player/Player.Spells.cs index 70f8f46b4..d8ea0afcb 100644 --- a/Source/Game/Entities/Player/Player.Spells.cs +++ b/Source/Game/Entities/Player/Player.Spells.cs @@ -1683,15 +1683,6 @@ namespace Game.Entities // Check level, skip class spells if not high enough uint requiredLevel = Math.Max(spellInfo.SpellLevel, spellInfo.BaseLevel); - - // riding special cases - if (skillId == (uint)SkillType.Riding) - { - if ((GetClassMask() & ((1 << ((int)Class.Deathknight - 1)) | (1 << ((int)Class.DemonHunter - 1)))) != 0 - && (ability.Spell == PlayerConst.SpellApprenticeRiding || ability.Spell == PlayerConst.SpellJourneymanRiding)) - requiredLevel = 0; - } - if (requiredLevel > GetLevel()) continue;