Package net.sf.l2j.gameserver.model

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


        double damage = Formulas.getInstance().calcManaDam(activeChar, target, skill, ss, bss);

        double mp = ( damage > target.getCurrentMp() ? target.getCurrentMp() : damage);
        target.reduceCurrentMp(mp);
        if (damage > 0)
          if (target.isSleeping()) target.stopSleeping(null);

        StatusUpdate sump = new StatusUpdate(target.getObjectId());
        sump.addAttribute(StatusUpdate.CUR_MP, (int) target.getCurrentMp());
        // [L2J_JP EDIT START - TSL]
        target.sendPacket(sump);
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.