From 0d661204ed0fc403e78f5dcb01fdb4397597a1a9 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Fri, 20 Dec 2013 18:45:33 -0500 Subject: [PATCH] Fix MakeRandomInt for flurry and extraattack --- zone/client_process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index dba9f7131..f4b287991 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -441,7 +441,7 @@ bool Client::Process() { if (auto_attack_target && flurrychance) { - if(MakeRandomInt(0, 100) < flurrychance) + if(MakeRandomInt(0, 99) < flurrychance) { Message_StringID(MT_NPCFlurry, 128); Attack(auto_attack_target, 13, false); @@ -458,7 +458,7 @@ bool Client::Process() { wpn->GetItem()->ItemType == ItemType2HBlunt || wpn->GetItem()->ItemType == ItemType2HPiercing ) { - if(MakeRandomInt(0, 100) < ExtraAttackChanceBonus) + if(MakeRandomInt(0, 99) < ExtraAttackChanceBonus) { Attack(auto_attack_target, 13, false); }