fix(Core/Spell): Removed gathering failure chance from herbalism and … (#15423)
fix(Core/Spell): Removed gathering failure chance from herbalism and mining nodes * cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/052dfe27fc324f13f8d4cc2af802f57963d8fe7c) Co-authored-by: Tony Konzel <saxxonpike@gmail.com>
This commit is contained in:
@@ -6328,7 +6328,8 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
|
|
||||||
// chance for fail at lockpicking attempt
|
// chance for fail at lockpicking attempt
|
||||||
// second check prevent fail at rechecks
|
// second check prevent fail at rechecks
|
||||||
if (skillId != SKILL_NONE && (!m_selfContainer || ((*m_selfContainer) != this)))
|
// herbalism and mining cannot fail as of patch 3.1.0
|
||||||
|
if (skillId != SKILL_NONE && skillId != SKILL_HERBALISM && skillId != SKILL_MINING && (!m_selfContainer || ((*m_selfContainer) != this)))
|
||||||
{
|
{
|
||||||
// chance for failure in orange lockpick
|
// chance for failure in orange lockpick
|
||||||
if (skillId == SKILL_LOCKPICKING && reqSkillValue > irand(skillValue - 25, skillValue + 37))
|
if (skillId == SKILL_LOCKPICKING && reqSkillValue > irand(skillValue - 25, skillValue + 37))
|
||||||
|
|||||||
Reference in New Issue
Block a user