diff options
| author | SnapperRy <snapperryen@gmail.com> | 2016-07-05 23:23:22 +0200 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-04 23:49:42 +0100 |
| commit | 9f9692427a95faeca7f4f80ca75f5b0fea766d0b (patch) | |
| tree | 45d24473b223251c480ae97b11738e3d07bfe469 /src | |
| parent | 623215ce31702c45d4d590e4523ac6debd5d6a0c (diff) | |
Core/Fishing: update fishing skill regardless of success or failure (junk items fished) (#17504)
(cherry picked from commit bf30ec9c8efb40e78cc8c123780edf12e7a2a162)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index c7a86c5425e..1f5b11c022e 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1528,11 +1528,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(); |
