Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Character.reduceCurrentHp()


      {
        target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar);
        filename = "charmanage.htm";
      }
      else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
        target.reduceCurrentHp(target.getMaxHp()*Config.L2JMOD_CHAMPION_HP + 1, activeChar);
      else
        target.reduceCurrentHp(target.getMaxHp() + 1, activeChar);
    }
    else
    {
View Full Code Here


        filename = "charmanage.htm";
      }
      else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion())
        target.reduceCurrentHp(target.getMaxHp()*Config.L2JMOD_CHAMPION_HP + 1, activeChar);
      else
        target.reduceCurrentHp(target.getMaxHp() + 1, activeChar);
    }
    else
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
    }
View Full Code Here

                            activeChar.sendPacket(sm);
                        }
                  }
                }

                target.reduceCurrentHp(damage, activeChar);
            }
        }
        // self Effect :]
        L2Effect effect = activeChar.getFirstEffect(skill.getId());
        if (effect != null && effect.isSelfEffect())
View Full Code Here

                            activeChar.sendPacket(sm);
                        }
                  }
                }
               
                target.reduceCurrentHp(damage, activeChar);
            }

            // Check to see if we should do the decay right after the cast
            if (target.isDead() && getTargetType() == SkillTargetType.TARGET_CORPSE_MOB && target instanceof L2NpcInstance) {
                ((L2NpcInstance)target).endDecayTask();
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);

        if (soul && weapon!= null)
          weapon.setChargedSoulshot(L2ItemInstance.CHARGED_NONE);
View Full Code Here

      int damage = (int)Formulas.getInstance().calcMagicDam(
          activeChar, target, this, ss, 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.getInstance().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.