@Override public void doRegen() { Character actor = getActor(); actor.setCurrentHp(actor.getCurrentHp() + actor.getRegenHp()); actor.updateHp(); }
@Override public boolean checkCondition() { Character actor = getActor(); if (actor.isBattleStanced()) return false; return actor.getCurrentHp() < actor.getMaxHp(); }
public static TargetHp getInstance(Character target, int type) { TargetHp packet = (TargetHp) instance.newInstance(); packet.objectId = target.getObjectId(); packet.subId = target.getSubId(); packet.hp = target.getCurrentHp() / (float) target.getMaxHp(); packet.type = type; return packet; }