calculating warrior type

final else isn’t giving the expected amount