All pastes #69454 Raw Edit

Anonymous

public text v1 · immutable
#69454 ·published 2006-06-22 23:08 UTC
rendered paste body
Index: java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- java/net/sf/l2j/gameserver/model/L2Character.java	(revision 2145)
+++ java/net/sf/l2j/gameserver/model/L2Character.java	(working copy)
@@ -4344,9 +4344,10 @@
 				
         consumeHp = calcStat(Stats.HP_CONSUME_RATE,skill.getHpConsume(),null,null);
         if(consumeHp>=getCurrentHp())
-					consumeHp=getCurrentHp()-1.0;
-				
-                
+        {
+					getStatus().setCurrentHp(1);
+        }
+        else    
 				getStatus().reduceHp(consumeHp, this);
 				
 				su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());