Core/Fishing: update fishing skill regardless of success or failure (junk items fished) (#17504)

This commit is contained in:
SnapperRy
2016-07-05 23:23:22 +02:00
committed by jackpoz
parent 8edc1caf32
commit bf30ec9c8e

View File

@@ -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();