All pastes #45680 Raw Edit

Something

public text v1 · immutable
#45680 ·published 2006-03-14 15:47 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)
           {    	   
        	   if(skill.getHpConsume()>=getCurrentHp()) 
        		   getStatus().setCurrentHp(1.0);
        	   else 
        		   getStatus().reduceHp(skill.getHpConsume(), this);

               su.addAttribute(StatusUpdate.CUR_HP, (int) getCurrentHp());
               isSendStatus = true;
           }
           
           // Send a Server->Client packet StatusUpdate with MP modification to the L2PcInstance
          if (isSendStatus) sendPacket(su);