mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Fishing: update fishing skill regardless of success or failure (junk items fished) (#17504)
This commit is contained in:
@@ -1453,11 +1453,11 @@ void GameObject::Use(Unit* user)
|
||||
|
||||
TC_LOG_DEBUG("misc", "Fishing check (skill: %i zone min skill: %i chance %i roll: %i", skill, zone_skill, chance, roll);
|
||||
|
||||
// but you will likely cause junk in areas that require a high fishing skill (not yet implemented)
|
||||
player->UpdateFishingSkill();
|
||||
|
||||
// but you will likely cause junk in areas that require a high fishing skill
|
||||
if (chance >= roll)
|
||||
{
|
||||
player->UpdateFishingSkill();
|
||||
|
||||
/// @todo I do not understand this hack. Need some explanation.
|
||||
// prevent removing GO at spell cancel
|
||||
RemoveFromOwner();
|
||||
|
||||
Reference in New Issue
Block a user