Package com.l2jfrozen.gameserver.model

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


          // these skills needs to be rechecked
          if(target instanceof L2Attackable)
          {
            skill.getEffects(activeChar, target, ss, sps, bss);

            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


      }
     
      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

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.