All pastes #45677 Raw Edit

Someone

public text v1 · immutable
#45677 ·published 2006-03-14 15:43 UTC
rendered paste body
           // Consumme HP if necessary and Send the Server->Client packet StatusUpdate with current HP and MP to all other L2PcInstance to inform
           if (skill.getHpConsume() > 0)
           {
        	   double consumeHp;
        	   
        	   if(skill.getHpConsume()>=getCurrentHp()) 
        		   consumeHp=getCurrentHp()-1.0;
        	   else 
        		   consumeHp=skill.getHpConsume();

        	   getStatus().reduceHp(consumeHp, this);
               
               su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
               isSendStatus = true;
           }