소스 검색

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 10 년 전
부모
커밋
98443b830e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      L2J_Server/java/com/l2jserver/gameserver/model/actor/status/PcStatus.java

+ 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();