Sfoglia il codice sorgente

Summons base mcrit is much lower than 8%. For now I use old 0.8% value, but needs retail confirmation.

Gigiikun 15 anni fa
parent
commit
aaac5b3c1b

+ 4 - 2
L2_GameServer/java/net/sf/l2j/gameserver/skills/Formulas.java

@@ -499,10 +499,12 @@ public final class Formulas
 		}
 
 		@Override
-        public void calc(Env env)
+		public void calc(Env env)
 		{
 			L2Character p = env.player;
-			if (p instanceof L2PcInstance && p.getActiveWeaponInstance() != null)
+			if(p instanceof L2Summon)
+				env.value = 8; // TODO: needs retail value
+			else if (p instanceof L2PcInstance && p.getActiveWeaponInstance() != null)
 				env.value *= WITbonus[p.getWIT()];
 		}
 	}