From 15f57e4a4c1a9f27170a39eaa5a5ffbdcab11906 Mon Sep 17 00:00:00 2001 From: KimLS Date: Tue, 23 Sep 2014 15:42:20 -0700 Subject: [PATCH] Rob's broken skill up bug reported fixed --- zone/client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index 7038df6fc..70e92b764 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -2324,12 +2324,14 @@ bool Client::CheckIncreaseSkill(SkillUseTypes skillid, Mob *against_who, int cha { // the higher your current skill level, the harder it is int16 Chance = 10 + chancemodi + ((252 - skillval) / 20); - if (Chance < 1) - Chance = 1; // Make it always possible + Chance = (Chance * RuleI(Character, SkillUpModifier) / 100); Chance = mod_increase_skill_chance(Chance, against_who); + if(Chance < 1) + Chance = 1; // Make it always possible + if(MakeRandomFloat(0, 99) < Chance) { SetSkill(skillid, GetRawSkill(skillid) + 1);