Browse Source

Follow up to ba86a76 (#7784)

* Fixes #7770.
* Follow up to ba86a76.
* Adds a missing cap rate option for bSkillCooldown which wouldn't allow addition/reduction more than 10000 milliseconds.
Thanks to @attackjom and @sonniez!
Aleos 2 years ago
parent
commit
fab88ecd04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/pc.cpp

+ 1 - 1
src/map/pc.cpp

@@ -3588,7 +3588,7 @@ static void pc_bonus_itembonus(std::vector<s_item_bonus> &bonus, uint16 id, int
 	struct s_item_bonus entry = {};
 
 	entry.id = id;
-	entry.val = cap_value(val, -10000, 10000);
+	entry.val = cap_rate ? cap_value(val, -10000, 10000) : val;
 
 	bonus.push_back(entry);
 }