protected void doAction(int type, int bonus) {
        if (!mapGenerate)
            if (type == 1) {
                isAttack = true;
                attackDamage = getAttack(bonus);
                if (Parameters.getInstance().isDebug())
                    logger.info("Attack damage = " + attackDamage);
            } else if (type == 2) {
                getAtk(bonus);
            } else if (type == 3) {
                getDef(bonus);
            } else if (type == 4) {
                getHeal(bonus);
            }
    }