move damage calculation to team