From 000460265cdc954b09b62378644869f355cbd862 Mon Sep 17 00:00:00 2001 From: Alejandro Mujica Date: Thu, 7 Feb 2019 23:05:30 -0400 Subject: [PATCH] Player::getDefense Bug Fix In RealOTS when wielding two handed weapons the defense skill used is the weapon's type, however, this was not used although the code was added but seems I had forgotten to get the skill level. --- src/player.cpp | 2 ++ vc14/theforgottenserver.vcxproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index a538cb9..c57a079 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -263,6 +263,8 @@ int32_t Player::getDefense() default: break; } + + defenseSkill = getSkillLevel(defenseSkill); } if (shield) { diff --git a/vc14/theforgottenserver.vcxproj b/vc14/theforgottenserver.vcxproj index 10538bb..c601ab1 100644 --- a/vc14/theforgottenserver.vcxproj +++ b/vc14/theforgottenserver.vcxproj @@ -21,7 +21,7 @@ Win32Proj {A10F9657-129F-0FEF-14CB-CEE0B0E5AA3E} - 10.0.17134.0 + 10.0.17763.0