Core/Spells: Removed gathering failure chance from herbalism and mining nodes (#28227)

This commit is contained in:
Tony Konzel
2022-09-02 12:29:54 -05:00
committed by GitHub
parent ea711efcc3
commit 052dfe27fc

View File

@@ -5666,7 +5666,8 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
// chance for fail at lockpicking attempt
// 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)))
{
bool canFailAtMax = skillId == SKILL_LOCKPICKING;