From c8ec5cf7aa1f535633d3d44ac327d331ad06823f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 19:56:30 +0000 Subject: [PATCH] Decompile fn_22584 (CPc::GetDualWieldWeaponType) Batch #13446 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_22584 CPc::GetDualWieldWeaponType: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Actors/Player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Actors/Player.cpp b/Source/Contents/Actors/Player.cpp index 4fe362eda..f2240eb55 100644 --- a/Source/Contents/Actors/Player.cpp +++ b/Source/Contents/Actors/Player.cpp @@ -1764,7 +1764,7 @@ bool CPc::IsCostumeOutfit() const { int CPc::GetDualWieldWeaponType(int first, int second) { int result = W_FIST; int main = first; - int sub = second; + int sub = 0; if (!first) { if (!second) { @@ -1772,7 +1772,8 @@ int CPc::GetDualWieldWeaponType(int first, int second) { } main = second; - sub = 0; + } else { + sub = second; } if (main >= 1100 && main < 1150 || main >= 13400 && main < 13500 || main >= 500000 && main < 510000) {