Package net.sf.l2j.gameserver.model

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


            int damage = (int)(target.getCurrentCp() * (1-skill.getPower()));

            // Manage attack or cast break of the target (calculating rate, sending message...)
            if (!target.isRaid() && Formulas.getInstance().calcAtkBreak(target, damage))
            {
              target.breakAttack();
              target.breakCast();
            }
            skill.getEffects(activeChar, target);
            activeChar.sendDamageMessage(target, damage, false, false, false);
            target.setCurrentCp(target.getCurrentCp() - damage);
View Full Code Here


            if (damage > 0)
            {
                // Manage attack or cast break of the target (calculating rate, sending message...)
                if (!target.isRaid() && Formulas.getInstance().calcAtkBreak(target, damage))
                {
                    target.breakAttack();
                    target.breakCast();
                }

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

            if (damage > 0 && (!target.isDead() || getTargetType() != SkillTargetType.TARGET_CORPSE_MOB))
            {
                // Manage attack or cast break of the target (calculating rate, sending message...)
                if (!target.isRaid() && Formulas.getInstance().calcAtkBreak(target, damage))
                {
                    target.breakAttack();
                    target.breakCast();
                }

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

        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();
                  target.breakCast();
              }

              activeChar.sendDamageMessage(target, damage, false, false, false);
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.