瀏覽代碼

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 年之前
父節點
當前提交
fab88ecd04
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 }