瀏覽代碼

Fixed stupid bug: 80% of the summon attack attribute was calculated from current owner atatck attribute value (already only 20%).
Now calculating in more correct way (owner*4).

_DS_ 16 年之前
父節點
當前提交
e4cfd541ac
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2SummonInstance.java

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2SummonInstance.java

@@ -298,8 +298,8 @@ public class L2SummonInstance extends L2Summon
 	{
 		if (getOwner() == null)
 			return 0;
-		// 80% of the owner
-		return (8 * getOwner().getAttackElementValue(attribute)) / 10; 
+		// 80% of the owner (onwer already has only 20%)
+		return 4 * getOwner().getAttackElementValue(attribute); 
 	}
 
 	@Override