Преглед на файлове

For summons attibute defense bonus should be added to base attribute defense.
Same attack attribute handling will be added later.

_DS_ преди 16 години
родител
ревизия
711abf471f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2SummonInstance.java

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

@@ -306,8 +306,9 @@ public class L2SummonInstance extends L2Summon
 	public int getDefenseElementValue(byte attribute)
 	{
 		if (getOwner() == null)
-			return 0;
+			return super.getDefenseElementValue(attribute);
 
-		return getOwner().getDefenseElementValue(attribute);
+		// bonus from owner
+		return super.getDefenseElementValue(attribute) + getOwner().getDefenseElementValue(attribute);
 	}
 }