Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Character.reduceCurrentHp()


             
              player = null;
              smsg = null;
            }
            else
              target.reduceCurrentHp(damage, activeChar);
          }
          else
          {
            // only players can reduce CPs each other
            if (activeChar instanceof L2PcInstance && target instanceof L2PcInstance && !target.isInvul())
View Full Code Here


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

        else
          damage = (int) Formulas.calcPhysDam(activeChar, target, skill, shld, crit, dual, soul);

        if(damage > 0)
        {
          target.reduceCurrentHp(damage, activeChar);
          if(soul && weapon != null)
            weapon.setChargedSoulshot(L2ItemInstance.CHARGED_NONE);

          activeChar.sendDamageMessage(target, damage, false, false, false);
View Full Code Here

     
      if (damage > 0)
      {
        double finalDamage = damage;
        finalDamage = finalDamage + (modifier * finalDamage);
        target.reduceCurrentHp(finalDamage, caster);
        caster.sendDamageMessage(target, (int) finalDamage, false, crit, false);
      }
      else
      {
        caster.sendDamageMessage(target, 0, false, false, true);
View Full Code Here

      int damage = (int) Formulas.calcMagicDam(activeChar, target, this, sps, bss, mcrit);

      if(damage > 0)
      {
        target.reduceCurrentHp(damage, activeChar);

        // Manage attack or cast break of the target (calculating rate, sending message...)
        if(!target.isRaid() && Formulas.calcAtkBreak(target, damage))
        {
          target.breakAttack();
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.