Core/Players: Removed old unneccessary death knight and demon hunter riding workaround
This commit is contained in:
@@ -150,8 +150,6 @@
|
||||
enum PlayerSpells
|
||||
{
|
||||
SPELL_EXPERIENCE_ELIMINATED = 206662,
|
||||
SPELL_APPRENTICE_RIDING = 33389,
|
||||
SPELL_JOURNEYMAN_RIDING = 33391
|
||||
};
|
||||
|
||||
static uint32 copseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 };
|
||||
@@ -25168,15 +25166,6 @@ void Player::LearnSkillRewardedSpells(uint32 skillId, uint32 skillValue, Races r
|
||||
|
||||
// Check level, skip class spells if not high enough
|
||||
uint32 requiredLevel = std::max(spellInfo->SpellLevel, spellInfo->BaseLevel);
|
||||
|
||||
// riding special cases
|
||||
if (skillId == SKILL_RIDING)
|
||||
{
|
||||
if (GetClassMask() & ((1 << (CLASS_DEATH_KNIGHT - 1)) | (1 << (CLASS_DEMON_HUNTER - 1)))
|
||||
&& (ability->Spell == SPELL_APPRENTICE_RIDING || ability->Spell == SPELL_JOURNEYMAN_RIDING))
|
||||
requiredLevel = 0;
|
||||
}
|
||||
|
||||
if (requiredLevel > GetLevel())
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user