Parcourir la source

Fix hpconsume sometimes cause dead. Now if hp drop under 0.5 but is
caused by hpconsume dead and follow behavor from dead will be not count.

Reported by: yksdtc

Zealar il y a 10 ans
Parent
commit
98443b830e

+ 1 - 1
L2J_Server/java/com/l2jserver/gameserver/model/actor/status/PcStatus.java

@@ -294,7 +294,7 @@ public class PcStatus extends PlayableStatus
 			setCurrentHp(value);
 		}
 		
-		if (getActiveChar().getCurrentHp() < 0.5)
+		if ((getActiveChar().getCurrentHp() < 0.5) && !isHPConsumption)
 		{
 			getActiveChar().abortAttack();
 			getActiveChar().abortCast();