fixed wrong defence calculation bug