fixed Warrior.java