Selaa lähdekoodia

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 vuotta sitten
vanhempi
sitoutus
e4cfd541ac

+ 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