Core/Players: Removed old unneccessary death knight and demon hunter riding workaround

Port From (https://github.com/TrinityCore/TrinityCore/commit/44b51616a5d6c005e33899aa5e91319965e6d9dc)
This commit is contained in:
Hondacrx
2025-06-16 16:43:42 -04:00
parent 9287b9b3a7
commit b86d2c59f1
2 changed files with 0 additions and 11 deletions
@@ -63,8 +63,6 @@ namespace Framework.Constants
public const uint WarmodeEnlistedSpellOutside = 269083; public const uint WarmodeEnlistedSpellOutside = 269083;
public const uint SpellExperienceEliminated = 206662; public const uint SpellExperienceEliminated = 206662;
public const uint SpellApprenticeRiding = 33389;
public const uint SpellJourneymanRiding = 33391;
public const uint CurrencyMaxCapAncientMana = 2000; public const uint CurrencyMaxCapAncientMana = 2000;
@@ -1683,15 +1683,6 @@ namespace Game.Entities
// Check level, skip class spells if not high enough // Check level, skip class spells if not high enough
uint requiredLevel = Math.Max(spellInfo.SpellLevel, spellInfo.BaseLevel); 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()) if (requiredLevel > GetLevel())
continue; continue;