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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user