mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 23:11:56 -04:00
Implement correction from 3.3.5 into 6.x for runeforging skill learnt from
Death Knight quest.
This commit is contained in:
@@ -3656,7 +3656,8 @@ bool Player::AddSpell(uint32 spellId, bool active, bool learning, bool dependent
|
||||
if (!pSkill)
|
||||
continue;
|
||||
|
||||
if ((_spell_idx->second->AquireMethod == SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN && !HasSkill(pSkill->ID)))
|
||||
// Runeforging special case
|
||||
if ((_spell_idx->second->AquireMethod == SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN && !HasSkill(pSkill->ID)) || ((pSkill->ID == SKILL_RUNEFORGING_2) && _spell_idx->second->TrivialSkillLineRankHigh == 0))
|
||||
if (SkillRaceClassInfoEntry const* rcInfo = GetSkillRaceClassInfo(pSkill->ID, getRace(), getClass()))
|
||||
LearnDefaultSkill(rcInfo);
|
||||
}
|
||||
|
||||
@@ -7807,7 +7807,7 @@ SkillRangeType GetSkillRangeType(SkillRaceClassInfoEntry const* rcEntry)
|
||||
if (sObjectMgr->GetSkillTier(rcEntry->SkillTierID))
|
||||
return SKILL_RANGE_RANK;
|
||||
|
||||
if (rcEntry->SkillID == SKILL_RUNEFORGING)
|
||||
if (rcEntry->SkillID == SKILL_RUNEFORGING || rcEntry->SkillID == SKILL_RUNEFORGING_2)
|
||||
return SKILL_RANGE_MONO;
|
||||
|
||||
switch (skill->CategoryID)
|
||||
|
||||
Reference in New Issue
Block a user