Package net.sf.l2j.gameserver.model

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


                  if (target instanceof L2Attackable)
                    {
                      skill.getEffects(activeChar, target);

                      double aggdiff = ((L2Attackable)target).getHating(activeChar)
                                 - target.calcStat(Stats.AGGRESSION, ((L2Attackable)target).getHating(activeChar), target, skill);

                      if (skill.getPower() > 0)
                        ((L2Attackable)target).reduceHate(null, (int) skill.getPower());
                      else if (aggdiff > 0)
                        ((L2Attackable)target).reduceHate(null, (int) aggdiff);
View Full Code Here


      //int cLev = activeChar.getLevel();
      //hp += skill.getPower()/*+(Math.sqrt(cLev)*cLev)+cLev*/;
            if (skill.getSkillType() == SkillType.HEAL_STATIC)
              hp = skill.getPower();
            else if (skill.getSkillType() != SkillType.HEAL_PERCENT)
        hp *= target.calcStat(Stats.HEAL_EFFECTIVNESS, 100, null, null) / 100;

      target.setCurrentHp(hp + target.getCurrentHp());
      target.setLastHealAmount((int)hp);
      StatusUpdate su = new StatusUpdate(target.getObjectId());
      su.addAttribute(StatusUpdate.CUR_HP, (int)target.getCurrentHp());
View Full Code Here

            if (skill.getSkillType() == SkillType.MANAHEAL_PERCENT){
              //double mp = skill.getPower();
             mp = target.getMaxMp() * mp / 100.0;
            }
            else {
             mp = (skill.getSkillType() == SkillType.MANARECHARGE) ? target.calcStat(Stats.RECHARGE_MP_RATE,mp, null, null) : mp;
            }
      //int cLev = activeChar.getLevel();
      //hp += skill.getPower()/*+(Math.sqrt(cLev)*cLev)+cLev*/;
            target.setLastHealAmount((int)mp);
      target.setCurrentMp(mp+target.getCurrentMp());
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.