Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.reduceCurrentHp()


            {
              L2PcInstance player = (L2PcInstance) target;
              if (!player.isInvul())
              {
                player.setCurrentCp(1); // Set CP to 1
                player.reduceCurrentHp(damage, activeChar);
              }
              player = null;
            }
            else if (target instanceof L2MonsterInstance) // If is a monster remove first damage and after 50% of current hp
            {
View Full Code Here


                player.setCurrentCp(cur_cp - damage);
               
              }
             
              if (hp_damage > 0)
                player.reduceCurrentHp(damage, activeChar);
            }
            else
              target.reduceCurrentHp(damage, activeChar);
          }
        }
View Full Code Here

    while(it.hasNext())
    {
      try
      {
        L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
        target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);
        target = null;
      }
      catch(Exception e)
      {
        if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.