// Warrior special attack/spell. Does 4 damage public void specialAttack(Character other) { System.out.println("Used special attack 'Power Strike'"); int hitroll = this.roll(3, 6); System.out.println(this.getName() + " rolled " + hitroll); System.out.println(this.getName() + "'s effDex: " + (getEffDx())); if (hitroll < this.getEffDx()) { other.setHp(other.getHp() - 4); System.out.println("Attack successful"); } else { System.out.println("Attack missed"); } }